On Sat, Feb 13, 2010 at 08:15:54AM +1100, DavidW wrote: > > On 13/02/2010, at 8:04 AM, fons@kokkinizita.net wrote: > > Python gets that right: > > > > a,b = b,a > > > > will swap the values of a and b. > Not quite = depends on the mutability of a and b. Won't work for > tuples for eg. Tuples are immutable, but the variable referring to them are not. >>> A = (1,2) >>> B = (3,4) >>> A,B = B,A >>> A (3, 4) >>> B (1, 2) >>> Ciao, -- FA O tu, che porte, correndo si ? E guerra e morte ! ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net