]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-152132: Fix bugs in Py_RunMain() (#153461) (#153466)
authorVictor Stinner <vstinner@python.org>
Fri, 10 Jul 2026 00:18:41 +0000 (02:18 +0200)
committerGitHub <noreply@github.com>
Fri, 10 Jul 2026 00:18:41 +0000 (00:18 +0000)
commitcecafebc2e30ab2aac5f046ed5c9fbc75d6bfb51
tree867e3a7c2daa47873d0991ece4a1beee80808208
parentef5569e03dc774a3c214bce7659c4075af429400
[3.15] gh-152132: Fix bugs in Py_RunMain() (#153461) (#153466)

* Check for signals more often. Previously, a pending exception could
  be removed by PyErr_Clear().
* Only call _PyInterpreterState_SetNotRunningMain() if
  _PyInterpreterState_SetRunningMain() has been called.
* Convert _PyPathConfig_UpdateGlobal() PyStatus error to an
  exception.
Modules/main.c