[issue29881] Add a new private API for "static C variables" (_PyStaticVar) to clear them at exit

Serhiy Storchaka report at bugs.python.org
Thu Mar 23 07:00:40 EDT 2017


Serhiy Storchaka added the comment:

> "use gc_next/gc_refs for managing a linked list"

Forgot about this idea. Not all objects have the GC header.

But if they have it they could be removed from the GC list and added in the separate list since in any case the garbage collector shouldn't destroy objects referenced by static variables.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29881>
_______________________________________


More information about the Python-bugs-list mailing list