This object gives you read-only access to typed data within the entire segment. This
allows you to retrieve information from another field other than the one being validated.
The table below notes the differences in the segment Object between the parser engines:
Parser Versions 3.211.245 to 4.5
Parser Version 5.0 and Up
The old objects would provide read-only behavior by not implementing mutable functions (e.g. setattr, set_count_of_subfield, etc).
The field object provides the read-only behavior by raising a NotImplementedError.
In both parser engines, an error is raised. However, the 4.5 parser engine raises an AttributeError and the 5.0 parser engine raises a NotImplementedError.