[Python-Dev] Re: Re: 2.4 news reaches interesting places
Fredrik Lundh
fredrik at pythonware.com
Sun Dec 12 18:53:27 CET 2004
> . Multiple assignment is slower than individual assignment. For
> example "x,y=a,b" is slower than "x=a; y=b". However, multiple
> assignment is faster for variable swaps. For example, "x,y=y,x" is
> faster than "t=x; x=y; y=t".
marginally faster in 2.4, a lot slower in earlier versions. maybe you
should mark sections that rely on 2.4-specific optimizations, so that
people who use earlier versions don't end up slowing their programs
down...
</F>
More information about the Python-Dev
mailing list