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/2002-July/026280.html below:

[Python-Dev] Single- vs. Multi-pass iterability

[Python-Dev] Single- vs. Multi-pass iterability [Python-Dev] Single- vs. Multi-pass iterabilityGuido van Rossum guido@python.org
Thu, 11 Jul 2002 06:47:53 -0400
> > Proposal: make files really support the iterator
> > protocol. __iter__ would return self and next() would call
> > readline and raise StopIteration if ''.  If anyone wants the
> > xreadline performance improvement it should be explicit.

No.  I won't have "for line in file" be slower than attainable.

The only solution I accept is a complete rewrite of the I/O system
without using stdio, so xreadlines can be integrated.

--Guido van Rossum (home page: http://www.python.org/~guido/)




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