swap function?

John W. Baxter jwbnews at scandaroon.com
Thu Nov 16 00:00:56 EST 2000


In article <3A133878.DA6788EF at uniserve.com>, Bob van der Poel 
<bvdpoel at uniserve.com> wrote:

> Thanks! I feel much dumber now....

No need for that...

   a ,b = b, a

is only obvious *after* you see it--more than than: after you see it and 
someone assures you that the right hand side is evaluated before the 
assignments begin, so that it works.  ;-)

  --John

-- 
John W. Baxter   Port Ludlow, WA USA  jwbnews at scandaroon.com



More information about the Python-list mailing list