Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

bpo-36427: Document that PyEval_RestoreThread and PyGILState_Ensure can terminate the calling thread#12541

Merged
pablogsal merged 2 commits into
python:masterpython/cpython:masterfrom
pablogsal:gil_warningpablogsal/cpython:gil_warningCopy head branch name to clipboard
Apr 13, 2019
Merged

bpo-36427: Document that PyEval_RestoreThread and PyGILState_Ensure can terminate the calling thread#12541
pablogsal merged 2 commits into
python:masterpython/cpython:masterfrom
pablogsal:gil_warningpablogsal/cpython:gil_warningCopy head branch name to clipboard

Conversation

@pablogsal

@pablogsal pablogsal commented Mar 25, 2019

Copy link
Copy Markdown
Member

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but I have a question :-)

Comment thread Doc/c-api/init.rst
Comment thread Doc/c-api/init.rst
@pablogsal pablogsal merged commit fde9b33 into python:master Apr 13, 2019
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @pablogsal for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖

@pablogsal pablogsal deleted the gil_warning branch April 13, 2019 16:23
pablogsal added a commit to pablogsal/cpython that referenced this pull request Apr 13, 2019
…sure can terminate the calling thread (pythonGH-12541)

Calling these function from a thread when the runtime is finalizing will terminate
the thread, even if the thread was not created by Python. Users can use
_Py_IsFinalizing or sys.is_finalizing to check if the interpreter is in the process of
being finalized before calling this function to avoid unwanted termination.
(cherry picked from commit fde9b33)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
@bedevere-bot

Copy link
Copy Markdown

GH-12820 is a backport of this pull request to the 3.7 branch.

pablogsal added a commit that referenced this pull request Apr 14, 2019
…sure can terminate the calling thread (GH-12541) (GH-12820)

Calling these function from a thread when the runtime is finalizing will terminate
the thread, even if the thread was not created by Python. Users can use
_Py_IsFinalizing or sys.is_finalizing to check if the interpreter is in the process of
being finalized before calling this function to avoid unwanted termination.
(cherry picked from commit fde9b33)
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.

7 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.