eof?

Alex Martelli aleaxit at yahoo.com
Wed Aug 15 16:39:32 EDT 2001


"Rupert Scammell" <rupe at metro.yak.net> wrote in message
news:79179cf5.0108151124.14bc63e8 at posting.google.com...
    ...
> I was aware of the readlines() limitation, but I'm wondering how
> xreadlines() differs from using something like for line in
> fileinput.input([file]): process(line), which I've been using instead
> of readlines()?

I think fileinput has been upgraded to use xreadlines or its
equivalent internally.


> Any appreciable performance or mem usage differences here?

You had better measure, otherwise the response may not be
significant for your specific platform.


Alex






More information about the Python-list mailing list