STINNER Victor <victor.stin...@gmail.com> added the comment:

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

I'm quite sure that calling PyMem_SetAllocator() or 
PyObject_SetArenaAllocator() after Py_Initialize() will quickly crash.

> If PyMem_Malloc() and PyObject_Malloc() are not needed for 
> pre-initialization, should we support calling them before Py_Initialize()?

We don't have to support them.

Ok, I remove them from the pre-init documentation.

----------

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

Reply via email to