Tuple assignment and generators?

vdrab stijndesaeger at gmail.com
Fri May 5 03:34:17 EDT 2006


Wow, so, to see if I understand correctly:

>>> r = 0
>>> s = 0
>>> t = 100001
>>> u = 100001
>>> r == s
True
>>> t == u
True
>>> r is s
True
>>> t is u
False
>>> ... ?

what the...? 
does anybody else get mighty uncomfortable about this? 
s.




More information about the Python-list mailing list