[Python-Dev] Re: Re: 2.4 news reaches interesting places (original) (raw)
Fredrik Lundh fredrik at pythonware.com
Sun Dec 12 18:53:27 CET 2004
- Previous message: [Python-Dev] Re: 2.4 news reaches interesting places
- Next message: [Python-Dev] Re: 2.4 news reaches interesting places
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
. 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...
- Previous message: [Python-Dev] Re: 2.4 news reaches interesting places
- Next message: [Python-Dev] Re: 2.4 news reaches interesting places
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]