tt = a, b = t

Jason Orendorff jason at jorendorff.com
Sun Jan 13 19:56:29 CET 2002


> >>> 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?

You assigned the value 2 to None!

## Jason Orendorff    http://www.jorendorff.com/






More information about the Python-list mailing list