iterating over lines in a file

Alex Martelli alex at magenta.com
Sat Jul 22 03:56:30 EDT 2000


"Daley, Mark W" <mark.w.daley at intel.com> wrote in message
news:75F7304BB41CD411B06600A0C98414FCB36815 at ORSMSX54...
> Isn't the argument for readlines() a memory size, as in 512 bytes?  If so,
> it is possible to have 3509 lines that are <= 512 bytes.

How?  Each line occupies at least one byte, its \n...


Alex






More information about the Python-list mailing list