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

gh-112826: Add a "What's New" Entry About _thread._is_main_interpreter by ericsnowcurrently · Pull Request #112853 · python/cpython · GitHub

Repository navigation

gh-112826: Add a "What's New" Entry About _thread._is_main_interpreter - #112853

Merged
ericsnowcurrently merged 2 commits into
python:mainfrom
ericsnowcurrently:fix-112826-missing-_thread-_is_main_interpreter
Dec 7, 2023
Merged

ericsnowcurrently merged 2 commits into
python:mainfrom
ericsnowcurrently:fix-112826-missing-_thread-_is_main_interpreter

Conversation

ericsnowcurrently commented Dec 7, 2023 •
edited by github-actions Bot
Loading

Copy link
Copy Markdown
Member

As of gh-112661, the threading module expects the _thread module to have a _is_main_interpreter(), which is used in the internal threading._shutdown(). This change causes a problem for anyone that replaces the _thread module with a custom one (only if they don't provide _is_main_interpreter()). They need to be sure to add it for 3.13+, thus this PR is adding a note in "What's New".

This also forward-ports the "What's New" entry from 3.12 (gh-112850). Note that we do not also forward-port the fix in that PR. The fix is there only due to a regression from 3.12.0. There is no regression in 3.13+.


📚 Documentation preview 📚: https://cpython-previews--112853.org.readthedocs.build/

ericsnowcurrently force-pushed the fix-112826-missing-_thread-_is_main_interpreter branch from c6d55ef to 13c8566 Compare December 7, 2023 18:53
ericsnowcurrently merged commit 64d8b4c into python:main Dec 7, 2023
ericsnowcurrently deleted the fix-112826-missing-_thread-_is_main_interpreter branch December 7, 2023 20:22
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
…rpreter (pythongh-112853)

As of pythongh-112661, the threading module expects the _thread module to have a _is_main_interpreter(), which is used in the internal threading._shutdown().  This change causes a problem for anyone that replaces the _thread module with a custom one (only if they don't provide _is_main_interpreter()).  They need to be sure to add it for 3.13+, thus this PR is adding a note in "What's New".

This also forward-ports the "What's New" entry from 3.12 (pythongh-112850).  Note that we do not also forward-port the fix in that PR.  The fix is there only due to a regression from 3.12.0. There is no regression in 3.13+.
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
…rpreter (pythongh-112853)

As of pythongh-112661, the threading module expects the _thread module to have a _is_main_interpreter(), which is used in the internal threading._shutdown().  This change causes a problem for anyone that replaces the _thread module with a custom one (only if they don't provide _is_main_interpreter()).  They need to be sure to add it for 3.13+, thus this PR is adding a note in "What's New".

This also forward-ports the "What's New" entry from 3.12 (pythongh-112850).  Note that we do not also forward-port the fix in that PR.  The fix is there only due to a regression from 3.12.0. There is no regression in 3.13+.
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

docs Documentation in the Doc dir skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL