[issue45953] Statically allocate interpreter states as much as possible.
Julien Palard
report at bugs.python.org
Mon Mar 28 07:25:23 EDT 2022
Julien Palard <julien+python at palard.fr> added the comment:
Since https://github.com/python/cpython/commit/121f1f893a39d0b58d3d2b5597505c154ecaac2a, `sys.getrefcount(1)` is surprising:
>>> __import__("sys").getrefcount(1)
1000000210
Should sys.getrefcount try to "fix" the value like by returning `PyREFCNT(object) % 999999999`? (But using a define to avoid the "magic, copy/pasted value").
----------
nosy: +mdk
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45953>
_______________________________________
More information about the Python-bugs-list
mailing list