Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 1.9 KB

File metadata and controls

36 lines (29 loc) · 1.9 KB

Iterator — where it lives outside this repo

Cited, real implementations to study (or point an agent at) when designing or reviewing traversal code.

Python standard library

Major ecosystems

What to notice across all of them

Every one hides a cursor protocol (continuation tokens, DB cursors, file offsets) behind the one protocol Python already speaks. And every one documents its laziness as a feature with consequences — Django warns that .iterator() skips caching; file iterators exhaust. When reviewing, ask: does the signature promise Iterator, and does anything downstream silently materialize it?