[issue1981] operator "is"
report at bugs.python.org
Thu Jan 31 17:46:30 CET 2008
Alexander Shigin added the comment:
I think it's good idea to make a note in Comparisons section or make
some reference to data model section.
The operators is and is not test for object identity: x is y is true if
and only if x and y are the same object. x is not y yields the inverse
>>> id(a.__abs__) == id(a.__abs__)
And only example below shows me error in my objection.
>>> p = id(w)
>>> del w
>>> e = 1
I'm sorry for spam. I've missed Issue1410739 when search for any open
Tracker <report at bugs.python.org>
More information about the Python-bugs-list