> I haven't followed this thread closely, and my brain is a bit frazzled at > the moment, but is there some fundamental reason that the file object's > readlines method can't be made lazy, perhaps only when given a sizehint? Yes -- readlines() is documented to return a list, and some people do things to it that require it to be a real list (e.g. sort or reverse it or modify it in place or concatenate it with other lists). --Guido van Rossum (home page: http://www.python.org/~guido/)
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