You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Better representation of segments in multi-segment records #402
The current implementation is rather fragile and hard to generalize at times. In particular:
The segments attribute is a list of Record or None objects. Perhaps empty records could be represented with an empty-represented Record object instead. One cannot tell the segment length from the None object.
For variable-layout records, the layout record is read into the first segment. Maybe there should be a way to abstract away the layout record so that applications do not need to know about fixed vs variable layout records.
The two questions here—how to represent empty segments and their lengths, and how to handle a variable-layout header without making applications special-case it—are both included in #746. I am closing this issue so we can keep the remaining multi-segment design discussion in one place. This is a tracking cleanup, not a claim that the design questions are resolved.
Activity
tompollard commentedon Dec 1, 2026
The two questions here—how to represent empty segments and their lengths, and how to handle a variable-layout header without making applications special-case it—are both included in #746. I am closing this issue so we can keep the remaining multi-segment design discussion in one place. This is a tracking cleanup, not a claim that the design questions are resolved.