[issue45953] Statically allocate interpreter states as much as possible.

Guido van Rossum report at bugs.python.org
Mon Mar 28 16:56:13 EDT 2022


Guido van Rossum <guido at python.org> added the comment:

I used 999999999 in deepfreeze.py to signify "immortal object". It has been copied by others (small integers are essentially immortal too). I wasn't too sure that the refcount wouldn't go below zero if the interpreter is repeatedly finalized and reinitialized. Once we have official immortal objects (see PEP 683) we should switch to that.

Since you seem to be challenging the value of 999999999, my question to you is, why do you care what the refcount of 1 is?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45953>
_______________________________________


More information about the Python-bugs-list mailing list