"in" for dicts (was: Python 2.1 function attributes)
Remco Gerlich
scarblac at pino.selwerd.nl
Mon Jan 29 05:41:29 EST 2001
Tim Peters <tim.one at home.com> wrote in comp.lang.python:
> Figures -- that's the one Guido likes least. He dislikes xrange too. He
> was forced into xreadlines by timing considerations (we couldn't match its
> performance cleanly, not with finite effort). The only reason to like
> xreadlines is speed (which is reason enough!)
Huh? I like it because it's a very simple way to iterate over a file line by
line without having the whole file in memory. Simpler than the several
existing ways that get discussed over and over and over.
And it's faster, too!!
--
Remco Gerlich
More information about the Python-list
mailing list