]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35713: Split _Py_InitializeCore into subfunctions (GH-11650)
authorVictor Stinner <vstinner@redhat.com>
Tue, 22 Jan 2019 20:18:05 +0000 (21:18 +0100)
committerGitHub <noreply@github.com>
Tue, 22 Jan 2019 20:18:05 +0000 (21:18 +0100)
commit6d43f6f081023b680d9db4542d19b9e382149f0a
treed777411c26c08e73b757e5a903669b5a00fb5747
parent28f6cb34f602b9796987904a607dceaf2e4a9e78
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
Include/internal/pycore_pylifecycle.h
Misc/NEWS.d/next/Core and Builtins/2019-01-22-18-50-21.bpo-35713.bTeUsa.rst [new file with mode: 0644]
Objects/exceptions.c
Objects/fileobject.c
Objects/floatobject.c
Objects/longobject.c
Objects/object.c
Objects/unicodeobject.c
Python/pylifecycle.c