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

Guido van Rossum guido@python.org
Thu, 11 Jul 2002 06:41:45 -0400


> What's the reason for using xreadlines as a file iterator?  Was it
> performance or was it just the easiest way to implement it using an
> existing object?

I thought this was answered adequately by my last entry in the SF bug
report.  The short answer is performance in the common case.

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