Toggle

random832 at fastmail.us random832 at fastmail.us
Wed Oct 8 23:54:06 EDT 2014


On Wed, Oct 8, 2014, at 23:02, Mark Lawrence wrote:
> When I first read this I was extremely jealous of the originator but 
> having used it umpteen times I'm still extremely jealous of the 
> originator!!!  Why doesn't my mind work like his? :)

You could also keep the ints in two variables and do a ^= b : b ^= a : a
^= b. Or use a, b = b, a. What I don't see in that answer is any
benchmarking support for his sweeping assertions of what is the fastest
version.



More information about the Python-list mailing list