[docs] [issue32124] Document functions safe to be called before Py_Initialize()

Serhiy Storchaka report at bugs.python.org
Fri Nov 24 13:28:07 EST 2017


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

Should PyMem_SetAllocator() and PyObject_SetArenaAllocator() be called before Py_Initialize(), or they can be called after it?

If PyMem_Malloc() and PyObject_Malloc() are not needed for pre-initialization, should we support calling them before Py_Initialize()? There are other functions and macros that can be safely used before Py_Initialize().

----------

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


More information about the docs mailing list