Creating a List of Empty Lists
Fredrik Lundh
fredrik at pythonware.com
Tue Dec 9 06:50:15 EST 2003
Robin Becker wrote:
> C:\tmp>\python22\python ttt.py
> list () = 3.22
> list [] = 1.33
> lambda z: list(z) = 2.55
> C:\tmp>\python23\python ttt.py
> list () = 1.73
> list [] = 3.22
> lambda z: list(z) = 4.77
is this part of the benchmark stable, or was your computer doing
something else in the background? I find it a bit disturbing that a
2.3 optimization would slow down a trivial operation that much...
</F>
More information about the Python-list
mailing list