Lazy file.readlines()?

Alexander Williams thantos at brimstone.mecha
Wed Sep 15 22:05:36 EDT 1999


On Thu, 16 Sep 1999 00:19:20 GMT, William Tanksley
<wtanksle at dolphin.openprojects.net> wrote:

>That sure would seem nice.  It wouldn't solve all of our problems, but it
>would make the most obvious speedup idiom behave well.

As I've often been heard to say (generally after a marathon Haskell
hacking session):

You can never have too much laziness.

Personally, I'd love to have almost Haskell-level laziness on tap in
Python, especially in things like file IO.  There's a lot to be said
for being able to go slurping through a file and having that stuff
done for you under the hood.

-- 
Alexander Williams (thantos at gw.total-web.net)
"In the end ... Oblivion Always Wins."




More information about the Python-list mailing list