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 <rep...@bugs.python.org>
<http://bugs.python.org/issue26511>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to