A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2002-April/023732.html below:

[Python-Dev] Use for enumerate()

[Python-Dev] Use for enumerate() [Python-Dev] Use for enumerate()Tim Peters tim.one@comcast.net
Sat, 27 Apr 2002 23:41:27 -0400
[holger krekel]
> ...
> But anyway, isn't reading and counting still a faster technique than
> using readlines() esp. for larger files?

How should I know <wink>?  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.





RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4