This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients docs@python, eric.snow, ncoghlan, serhiy.storchaka, vstinner
Date 2017-11-24.20:38:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1511555902.55.0.213398074469.issue32124@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
Date User Action Args
2017-11-24 20:38:22vstinnersetrecipients: + vstinner, ncoghlan, docs@python, eric.snow, serhiy.storchaka
2017-11-24 20:38:22vstinnersetmessageid: <1511555902.55.0.213398074469.issue32124@psf.upfronthosting.co.za>
2017-11-24 20:38:22vstinnerlinkissue32124 messages
2017-11-24 20:38:22vstinnercreate