Language: Python · Sphere: programming · Category: Io
Signature: (filename: str, num_lines: int) → None
Line-delimited file parser with chunked reads.
This module provides classes for efficiently reading and parsing large files by reading them in chunks and processing line by line, handling partial lines across chunk boundaries correctly.
When it runs, chunked reader guarantees got == truth; len(got) == 1000; got == ['first', 'second', 'last-without-newline'] (proven by run).
Checkable constraints:
got == truthlen(got) == 1000got == ['first', 'second', 'last-without-newline']got == ['', '', long_line, 'end']len(got[2]) == 10000got == ['a', 'bb', 'ccc']
- Green-run: ✓ passes (re-run under the extractor's gate)
- Constraint strength: recovery (truth-pinned)
- Independent oracle: ✓ consensus — xlang (validator v1.9)
- Peer review: unreviewed
△ AURA Pattern Library — © Reality Optimizer