Lazy "for line in f" ?

Alexandre Ferrieux alexandre.ferrieux at gmail.com
Mon Jul 23 09:59:49 CEST 2007


On Jul 23, 9:36 am, Paul Rubin <http://phr...@NOSPAM.invalid> wrote:
> Alexandre Ferrieux <alexandre.ferri... at gmail.com> writes:
> > So I'll reiterate the question: *why* does the Python library add that
> > extra layer of (hard-headed) buffering on top of stdio's ?
>
> readline?

I know readline() doesn't have this problem. I'm asking why the file
iterator does.

-Alex




More information about the Python-list mailing list