[issue35408] Python3.7 crash in PyCFunction_New due to broken _PyObject_GC_TRACK

STINNER Victor report at bugs.python.org
Wed Dec 5 09:07:25 EST 2018


STINNER Victor <vstinner at redhat.com> added the comment:

> If the call to PyCFunction_New is done from a C extension module, is it also necessary to call Py_Initialize()?

Py_Initialize() must always be called first.

----------

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


More information about the Python-bugs-list mailing list