FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-120838: Make Sure Py_Finalize() Always Runs Against the Main Interpreter by ericsnowcurrently · Pull Request #121063 · python/cpython · GitHub

/ cpython Public

gh-120838: Make Sure Py_Finalize() Always Runs Against the Main Interpreter - #121063

Closed
ericsnowcurrently wants to merge 3 commits into
python:mainfrom
ericsnowcurrently:py-finalize-ensure-main-interp
Closed

gh-120838: Make Sure Py_Finalize() Always Runs Against the Main Interpreter#121063
ericsnowcurrently wants to merge 3 commits into
python:mainfrom
ericsnowcurrently:py-finalize-ensure-main-interp

Conversation

ericsnowcurrently commented Jun 26, 2024
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

We can't easily force Py_Finalize() to run in the main thread (especially because of Py_Exit()), but we can at least ensure the main interpreter is active.

(We'll be backporting this since the fix for gh-120765 needs it.)

Copy link
Copy Markdown
Member Author

FYI, this causes gh-120765 to be triggered more often, so we'll need to fold it into the fix for that issue: gh-121060.

ericsnowcurrently marked this pull request as draft June 26, 2024 20:44
ericsnowcurrently deleted the py-finalize-ensure-main-interp branch June 26, 2024 21:58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs backport to 3.13 bugs and security fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL