what is the keyword "is" for?

Hendrik van Rooyen mail at microcorp.co.za
Wed Aug 16 02:58:56 EDT 2006


 "Dan Bishop" <danb_83 at yahoo.com> wrote:


| 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

Huh? - wtf is this - I find this deeply disturbing - Sybren's explanation kind
of was congruent with my own understanding, and this is just weird - Hendrik




More information about the Python-list mailing list