[Python-Dev] Use for enumerate() (original) (raw)
Tim Peters tim.one@comcast.net
Sat, 27 Apr 2002 23:41:27 -0400
- Previous message: [Python-Dev] Use for enumerate()
- Next message: [Python-Dev] Use for enumerate()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
[holger krekel]
... But anyway, isn't reading and counting still a faster technique than using readlines() esp. for larger files?
How should I know ? readlines() is reading and counting under the covers, but at C speed. So the question is whether and when you can program correct chunking at Python speed that's faster than the time readlines() takes to build line objects into a list. Try it and time it.
- Previous message: [Python-Dev] Use for enumerate()
- Next message: [Python-Dev] Use for enumerate()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]