STINNER Victor <vstin...@python.org> added the comment:

I tried to hack _PyStaticCode_Dealloc() to free strings, but since immortal 
objects are half-baken today, calling Py_DECREF() does crash.

Py_SETREF() should increase _Py_RefTotal if the old object is immortal and he 
new object is not.

Maybe this change should be reverted until Eric's PEP 683 "Immortal Objects, 
Using a Fixed Refcount" is implemented.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46430>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to