[Tutor] Re: Tutor digest, Vol 1 #260 - 6 msgs

dyoo dyoo@uclink4.berkeley.edu
Tue, 14 Mar 2000 10:31:40 -0800


> # note - this is buggy: the swap won't work because references haven't changed
> def swap(a, b):
>   t = a
>   a = b
>   b = a

Whoops, correction:

    t = a
    a = b
    b = t

Sorry about that.