Skip to content

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

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

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

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 enabled auto-merge (squash) July 10, 2026 01:02
@vstinner vstinner merged commit 53a2483 into python:3.14 Jul 10, 2026
84 of 86 checks passed
@miss-islington miss-islington deleted the backport-cecafeb-3.14 branch July 10, 2026 01:19
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