[Python-Dev] Python initialization and embedded Python (original) (raw)

Victor Stinner victor.stinner at gmail.com
Mon Nov 20 10:43:24 EST 2017


2017-11-20 16:31 GMT+01:00 Eric Snow <ericsnowcurrently at gmail.com>:

That PyDecodeLocale() can use PyMemRawMalloc() pre-init is an implementation detail.

Py_DecodeLocale() uses PyMem_RawMalloc(), and so its result must be freed by PyMem_RawFree(). It's part the documentation.

I'm not sure that I understood correctly. Do you agree to move "PyMem" globals back to Objects/obmalloc.c? (to allow to call PyMem_RawMalloc() before Py_Initialize())

Victor



More information about the Python-Dev mailing list