Re:Python idioms
by deno on Sunday June 12, 2011 @03:51PM
(#2647235)
map() returns an iterator in Py3k.
And here's the Python 2.5 naïve/in-memory version recreated in Python 3.2:
And on Python 2.7 is still the fastest:
On PyPy (1.5) it's pretty much the same, which goes to show why this is not “Python idiom”, but rather CPython's implementation detail:
[ Parent
| on HN ]
There are no comments on this comment yet.