DevPath

Stream a large file without loading it

Mid · practical lab · 20 min · runtime python

Brief

Write read_records(path) that yields one parsed object per line so the whole file is never held in memory. Handle a malformed line with a specific error that names the line number.

3 progressive hints are available in the editor.

Public checks

  • yields records — expected: one object per call