One candidate for itertools I'd like feedback on is "ilines": a universal newlines iterator. The idea is to take an iterator that produces input blocks and yield lines as universal newlines would produce them if the reads from a binary-opened file produced the same blocks. This allows things like decompression to iterate in parts rather than perform a full expansion. It would also make pseudo-files from zipfile a later possibility. For the curious, I have a Python version with tests at: http://members.dsl-only.net/~daniels/ilines.html If people think this is a good idea, I could turn it into an itertools patch. -- -Scott David Daniels Scott.Daniels at Acm.Org
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4