tt = a, b = t

Duncan Booth duncan at NOSPAMrcp.co.uk
Mon Jan 14 04:34:47 EST 2002


Gareth.McCaughan at pobox.com (Gareth McCaughan) wrote in 
news:slrna43n31.2spv.Gareth.McCaughan at g.local:

>> 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. :-)
> 
To be accurate, he didn't change the value of None. He created a new 
global variable called None. The original value is a builtin, and is still 
present. The new value simply hides the old one and 'del None' will make 
the builtin value visible again. 


-- 
Duncan Booth                                             duncan at rcp.co.uk
int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
"\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?



More information about the Python-list mailing list