tt = a, b = t

William Park NOSPAM.opengeometry at yahoo.ca
Sun Jan 13 14:00:39 EST 2002


rihad <rihad at mail.ru> 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?

You just assigned '2' into 'None'.  I thought 'None' is reserved
keyword.

-- 
William Park, Open Geometry Consulting, <opengeometry at yahoo.ca>.
8 CPU cluster, NAS, (Slackware) Linux, Python, LaTeX, Vim, Mutt, Tin



More information about the Python-list mailing list