diff options
| author | Victor Stinner <vstinner@redhat.com> | 2019-01-22 21:18:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-22 21:18:05 +0100 |
| commit | 6d43f6f081023b680d9db4542d19b9e382149f0a (patch) | |
| tree | d777411c26c08e73b757e5a903669b5a00fb5747 /Include/internal | |
| parent | 28f6cb34f602b9796987904a607dceaf2e4a9e78 (diff) | |
| download | cpython-git-6d43f6f081023b680d9db4542d19b9e382149f0a.tar.gz | |
bpo-35713: Split _Py_InitializeCore into subfunctions (GH-11650)
* Split _Py_InitializeCore_impl() into subfunctions: add multiple pycore_init_xxx() functions
* Preliminary sys.stderr is now set earlier to get an usable
sys.stderr ealier.
* Move code into _Py_Initialize_ReconfigureCore() to be able to call
it from _Py_InitializeCore().
* Split _PyExc_Init(): create a new _PyBuiltins_AddExceptions()
function.
* Call _PyExc_Init() earlier in _Py_InitializeCore_impl()
and new_interpreter() to get working exceptions earlier.
* _Py_ReadyTypes() now returns _PyInitError rather than calling
Py_FatalError().
* Misc code cleanup
Diffstat (limited to 'Include/internal')
| -rw-r--r-- | Include/internal/pycore_pylifecycle.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Include/internal/pycore_pylifecycle.h b/Include/internal/pycore_pylifecycle.h index de70199dae..6f5c544223 100644 --- a/Include/internal/pycore_pylifecycle.h +++ b/Include/internal/pycore_pylifecycle.h @@ -30,12 +30,13 @@ extern PyObject * _PyBuiltin_Init(void); extern _PyInitError _PySys_BeginInit(PyObject **sysmod); extern int _PySys_EndInit(PyObject *sysdict, PyInterpreterState *interp); extern _PyInitError _PyImport_Init(PyInterpreterState *interp); -extern _PyInitError _PyExc_Init(PyObject * bltinmod); +extern _PyInitError _PyExc_Init(void); +extern _PyInitError _PyBuiltins_AddExceptions(PyObject * bltinmod); extern _PyInitError _PyImportHooks_Init(void); extern int _PyFloat_Init(void); extern _PyInitError _Py_HashRandomization_Init(const _PyCoreConfig *); -extern void _Py_ReadyTypes(void); +extern _PyInitError _Py_ReadyTypes(void); /* Various internal finalizers */ |
