Message347990
In current Python document (3.7 - 3.9) there is such statement in documentation of Integer Objects:
The current implementation keeps an array of integer objects for all integers between ``-5`` and ``256``, when you create an int in that range you actually just get back a reference to the existing object. So it should be possible to change the value of ``1``. I suspect the behaviour of Python in this case is undefined. :-)
The last sentence is vague. It is irresponsible to write "I suspect" in documentation. And as the statements ahead has already clarified the sense that this is "a current implementation", the last sentence should be removed. |
|
Date |
User |
Action |
Args |
2019-07-15 20:39:43 | sgalal | set | recipients:
+ sgalal, docs@python |
2019-07-15 20:39:43 | sgalal | set | messageid: <1563223183.58.0.391676175993.issue37599@roundup.psfhosted.org> |
2019-07-15 20:39:43 | sgalal | link | issue37599 messages |
2019-07-15 20:39:43 | sgalal | create | |
|