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/2001-January/011290.html below:

readlines :: xrange : range

[Python-Dev] xreadlines : readlines :: xrange : range [Python-Dev] xreadlines : readlines :: xrange : rangePaul Prescod paulp@ActiveState.com
Tue, 02 Jan 2001 14:59:47 -0800
Skip Montanaro wrote:
> 
>     Guido> I'm slowly warming up to xreadlines(), ...
> 
> I haven't followed this thread closely, and my brain is a bit frazzled at
> the moment, but is there some fundamental reason that the file object's
> readlines method can't be made lazy, perhaps only when given a sizehint?

I suggested this at one point but it was pointed out that there is
probably a lot of code that works with the resulting list *as a list*
i.e. as a random-access, writable sequence object. I really wasn't
thrilled with xreadlines at first either...it's the least of all
possible evils (including the status quo).

 Paul



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