[issue26511] Add link to id() built-in in comparison operator documentation for "is"
Terry J. Reedy
report at bugs.python.org
Fri Mar 11 18:58:27 EST 2016
Terry J. Reedy added the comment:
There is not 'integer caching in Python'. This is strictly an implementation feature of CPython, and any other implementation that does similarly.
"or id(x) == id(y)" should be "(id(x) == id(y))" as the addition is an alternate wording, not an alternate condition. I am not sure that this will always be helpful.
----------
nosy: +terry.reedy
stage: -> needs patch
versions: +Python 3.5, Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26511>
_______________________________________
More information about the Python-bugs-list
mailing list