A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-June/045476.html below:

[Python-Dev] Another possible itertools candidate

[Python-Dev] Another possible itertools candidate [Python-Dev] Another possible itertools candidateScott David Daniels Scott.Daniels at Acm.Org
Fri Jun 18 03:25:06 EDT 2004
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

More information about the Python-Dev mailing list

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