swap function?

Gary Herron gherron at aw.sgi.com
Wed Nov 15 20:15:58 EST 2000


Do this:
  a,b = b,a


Bob van der Poel wrote:
> 
> I'm sure I'm just being very dumb today...but I was looking for a swap
> function and can't seem to find anything. I really don't need to do:
> 
>         temp=a
>         b=a
>         a=temp
> 
> everytime I need this do I????
> 
> Thanks!
> 
> --
> Bob van der Poel ** Wynndel, British Columbia, CANADA **
> EMAIL: bvdpoel at uniserve.com
> WWW:   http://users.uniserve.com/~bvdpoel
> 
> --
> http://www.python.org/mailman/listinfo/python-list

-- 
Dr. Gary Herron <gherron at aw.sgi.com>
206-287-5616
Alias | Wavefront
1218 3rd Ave, Suite 800, Seattle WA 98101




More information about the Python-list mailing list