Skip to content

Conversation

StanFromIreland
Copy link
Member

@StanFromIreland StanFromIreland commented Oct 4, 2025

PyGILState_STATE: If we don't want to document, I can add it to the ignore list.
I also fixed two .. seealso:: blocks I noticed.


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

@bedevere-app bedevere-app bot added docs Documentation in the Doc dir skip news labels Oct 4, 2025
@github-project-automation github-project-automation bot moved this to Todo in Docs PRs Oct 4, 2025
will simply return ``NULL`` indicating that there was no prior thread state.
.. seealso:
.. seealso::
Copy link
Member

Choose a reason for hiding this comment

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

hmm, this ought've been caught by sphinx-lint, cc @ezio-melotti @hugovk

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

@ZeroIntensity ZeroIntensity left a comment

Choose a reason for hiding this comment

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

Thanks, the PyGILState_GetThisThreadState change looks good. I'll leave the rest of this to the Sphinx wizards.

.. note::
This function does not account for :term:`thread states <thread state>` created
by something other than :c:func:`PyGILState_Ensure` (such as :c:func:`PyThreadState_New`).
Copy link
Member

Choose a reason for hiding this comment

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

@ZeroIntensity: Is this change correct?

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought it was, above:

the PyGILState_GetThisThreadState change looks good.

Copy link
Member

Choose a reason for hiding this comment

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

Oh, I didn't notice that @ZeroIntensity already reviewed the PR :-) So we're good :-)

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

LGTM

@hugovk hugovk added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Oct 9, 2025
@hugovk hugovk merged commit d2deb8f into python:main Oct 9, 2025
35 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs Oct 9, 2025
@miss-islington-app
Copy link

Thanks @StanFromIreland for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 9, 2025
…ng `PyGILState_STATE` (pythonGH-139572)

(cherry picked from commit d2deb8f)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
@miss-islington-app
Copy link

Sorry, @StanFromIreland and @hugovk, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker d2deb8fdef1ac5e54564448677cdb1522f1b776d 3.13

@bedevere-app
Copy link

bedevere-app bot commented Oct 9, 2025

GH-139832 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Oct 9, 2025
@StanFromIreland StanFromIreland deleted the ref-warnings-init branch October 9, 2025 09:38
hugovk pushed a commit that referenced this pull request Oct 9, 2025
…ing `PyGILState_STATE` (GH-139572) (#139832)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
StanFromIreland added a commit to StanFromIreland/cpython that referenced this pull request Oct 9, 2025
…cumenting `PyGILState_STATE` (pythonGH-139572)

(cherry picked from commit d2deb8f)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
@bedevere-app
Copy link

bedevere-app bot commented Oct 9, 2025

GH-139833 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Oct 9, 2025
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
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants