[issue23124] Incorrect Integer saving
Ezio Melotti
report at bugs.python.org
Sun Dec 28 02:59:16 CET 2014
Ezio Melotti added the comment:
On CPython small ints are cached to improve performances.
This is an implementation detail and "is" should not be used to compare ints (== should be used instead).
----------
nosy: +ezio.melotti
resolution: -> not a bug
stage: -> resolved
status: open -> closed
type: enhancement -> behavior
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23124>
_______________________________________
More information about the Python-bugs-list
mailing list