Hmm... An idea: if a,b==c,d:

Dennis Lee Bieber wlfraed at ix.netcom.com
Mon Nov 18 21:29:54 EST 2002


Andrew Koenig fed this fish to the penguins on Monday 18 November 2002 
03:37 pm:

> Richard> It doesn't have ()s, so it ain't two tuples. Easy enough, da?
> 
        But, in a way, it is the COMMA that defines a tuple, not the ()s... We 
recently had a discussion in which it was explained that

a,b = b,a

in essence generates a (b,a) tuple, then unpacks it into the left-side 
a,b


-- 
 > ============================================================== <
 >   wlfraed at ix.netcom.com  | Wulfraed  Dennis Lee Bieber  KD6MOG <
 >      wulfraed at dm.net     |       Bestiaria Support Staff       <
 > ============================================================== <
 >        Bestiaria Home Page: http://www.beastie.dm.net/         <
 >            Home Page: http://www.dm.net/~wulfraed/             <




More information about the Python-list mailing list