It feels so good, so quick and not C!
Greg Ewing (using news.cis.dfn.de)
me at privacy.net
Wed Mar 19 23:28:04 CET 2003
> Quoth John Machin:
>>(3) The cuteness of swapping by "x, y = y, x" hides the overhead of
>>packing and unpacking a 2-tuple, which may or may not be faster than
>>the traditional 3-assignment method.
The bytecode compiler really ought to optimise this.
<plug> Pyrex does optimise it, by the way! </plug>
Greg Ewing, Computer Science Dept,
University of Canterbury,
Christchurch, New Zealand
More information about the Python-list