ezdxf.comments.
from_stream
Yields comment tags from text stream as DXFTag objects.
DXFTag
stream – input text stream
codes – set of group codes to yield additional DXF tags e.g. {5, 0} to also yield handle and structure tags
from_file
Yields comment tags from file filename as DXFTag objects.
filename – filename as string
codes – yields also additional tags with specified group codes e.g. {5, 0} to also yield handle and structure tags