mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
bpo-35713: Reorganize sys module initialization (GH-11658)
* Rename _PySys_BeginInit() to _PySys_InitCore(). * Rename _PySys_EndInit() to _PySys_InitMain(). * Add _PySys_Create(). It calls _PySys_InitCore() which becomes private. * Add _PySys_SetPreliminaryStderr(). * Rename _Py_ReadyTypes() to _PyTypes_Init(). * Misc code cleanup.
This commit is contained in:
parent
cda73a5af2
commit
ab67281e95
4 changed files with 96 additions and 75 deletions
|
@ -1717,7 +1717,7 @@ PyObject _Py_NotImplementedStruct = {
|
|||
};
|
||||
|
||||
_PyInitError
|
||||
_Py_ReadyTypes(void)
|
||||
_PyTypes_Init(void)
|
||||
{
|
||||
#define INIT_TYPE(TYPE, NAME) \
|
||||
do { \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue