]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-98608: Stop Treating All Errors from _Py_NewInterpreterFromConfig() as Fatal ...
authorEric Snow <ericsnowcurrently@gmail.com>
Tue, 21 Mar 2023 16:49:12 +0000 (10:49 -0600)
committerGitHub <noreply@github.com>
Tue, 21 Mar 2023 16:49:12 +0000 (10:49 -0600)
commit3bb475662ba998e1b2d26fa370794d0804e33927
tree47cc612ffac4eb4dda24b4eb51c6796142695ce6
parent910a64e3013bce821bfac75377cbe88bedf265de
gh-98608: Stop Treating All Errors from _Py_NewInterpreterFromConfig() as Fatal (gh-102657)

Prior to this change, errors in _Py_NewInterpreterFromConfig() were always fatal.  Instead, callers should be able to handle such errors and keep going.  That's what this change supports.  (This was an oversight in the original implementation of _Py_NewInterpreterFromConfig().)  Note that the existing [fatal] behavior of the public Py_NewInterpreter() is preserved.

https://github.com/python/cpython/issues/98608
Include/cpython/initconfig.h
Include/cpython/pylifecycle.h
Include/internal/pycore_initconfig.h
Modules/_testcapimodule.c
Modules/_xxsubinterpretersmodule.c
Python/pylifecycle.c