Skip to content

[3.13] gh-152132: Fix bugs in Py_RunMain() (GH-153461) (GH-153466)#153468

Merged
vstinner merged 1 commit into
python:3.13from
miss-islington:backport-cecafeb-3.13
Jul 10, 2026
Merged

[3.13] gh-152132: Fix bugs in Py_RunMain() (GH-153461) (GH-153466)#153468
vstinner merged 1 commit into
python:3.13from
miss-islington:backport-cecafeb-3.13

Conversation

@miss-islington

@miss-islington miss-islington commented Jul 10, 2026

Copy link
Copy Markdown
Contributor
  • 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.
    (cherry picked from commit cecafeb)

Co-authored-by: Victor Stinner vstinner@python.org

…ythonGH-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.
(cherry picked from commit cecafeb)

Co-authored-by: Victor Stinner <vstinner@python.org>
@vstinner vstinner merged commit 99c765a into python:3.13 Jul 10, 2026
41 checks passed
@miss-islington miss-islington deleted the backport-cecafeb-3.13 branch July 10, 2026 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants