[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 02:35:04 EDT 2017


Serhiy Storchaka added the comment:

The patch contains an example of using _Py_STATICVAR(). But it doesn't use _PY_STATICVAR_INIT(). _PY_STATICVAR_INIT() can be used if extract the code of getting _array_reconstructor into separate function.

I like the idea in general, but I want to see more examples. Ideally -- the patch should use a new API for *all* static PyObject* variables. This will help to design good API.

----------

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


More information about the Python-bugs-list mailing list