tt = a, b = t

Gareth McCaughan Gareth.McCaughan at pobox.com
Sun Jan 13 14:13:37 EST 2002


"rihad" wrote:

> Playing with Python goes on....
> 
> tup = 1, 2
> tuptup = a, None = tup
> 
> >>> tup
> (1, 2)
> >>> a
> 1
> >>> tuptup
> (1, 2)
> 
> How did 2 manage to propagate to tuptup through None?

None is just an ordinary name. You changed its value to 2.
I strongly recommend you not to do that again. :-)

-- 
Gareth McCaughan  Gareth.McCaughan at pobox.com
.sig under construc



More information about the Python-list mailing list