mirror of
https://github.com/python/cpython.git
synced 2026-04-13 23:31:02 +00:00
gh-142417: Restore private _Py_InitializeMain() function (#145472)
This reverts commit 07c3518ffb.
Co-authored-by: Petr Viktorin <encukou@gmail.com>
This commit is contained in:
parent
dc12d1999b
commit
31343cf2bc
7 changed files with 153 additions and 8 deletions
|
|
@ -1530,6 +1530,18 @@ Py_Initialize(void)
|
|||
}
|
||||
|
||||
|
||||
PyStatus
|
||||
_Py_InitializeMain(void)
|
||||
{
|
||||
PyStatus status = _PyRuntime_Initialize();
|
||||
if (_PyStatus_EXCEPTION(status)) {
|
||||
return status;
|
||||
}
|
||||
PyThreadState *tstate = _PyThreadState_GET();
|
||||
return pyinit_main(tstate);
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
finalize_modules_delete_special(PyThreadState *tstate, int verbose)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue