Warning about "for line in file:"

Neil Schemenauer nas at python.ca
Fri Feb 15 15:59:35 EST 2002


Steven Majewski wrote:
> I also get the same behavior on any example I can contrive on
> file iterators that I get with with either readlines or xreadlines.

That's not surprising since xreadlines calls readlines.

  Neil




More information about the Python-list mailing list