◐ Shell
clean mode source ↗

bpo-32096: Remove obj and mem from _PyRuntime by vstinner · Pull Request #4532 · python/cpython

bpo-32096, bpo-30860:  Partially revert the commit
2ebc5ce:

* Move structures back from Include/internal/mem.h to
  Objects/obmalloc.c
* Remove _PyObject_Initialize() and _PyMem_Initialize()
* Remove Include/internal/pymalloc.h

PyMem_RawMalloc() and Py_DecodeLocale() can be called again before
_PyRuntimeState_Init().

@vstinner

Make sure that it's possible to call Py_DecodeLocale(), and then call
Py_SetProgramName() with the decoded string, before Py_Initialize().

Co-Authored-By: Eric Snow <ericsnowcurrently@gmail.com>

ncoghlan

ncoghlan

@vstinner

@vstinner

This was referenced

Nov 24, 2017