what is the keyword "is" for?

Dan Bishop danb_83 at yahoo.com
Tue Aug 15 18:43:00 EDT 2006


Sybren Stuvel wrote [on the difference between is and ==]:
> Obviously "a is b" implies "a == b",

Not necessarily.

>>> a = b = 1e1000 / 1e1000
>>> a is b
True
>>> a == b
False




More information about the Python-list mailing list