Skip to content

Docs: C API: Improve documentation around non-Python threads with subinterpreters #131087

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 17, 2025

Conversation

ZeroIntensity
Copy link
Member

@ZeroIntensity ZeroIntensity commented Mar 11, 2025

@da-woods's comment inspired me to improve some of the documentation here. This should play pretty nicely with the incoming PyThreadState_Ensure API, and with GH-127990 whenever that gets merged.


📚 Documentation preview 📚: https://cpython-previews--131087.org.readthedocs.build/en/131087/c-api/init.html#supporting-subinterpreters-in-non-python-threads

@sharktide
Copy link
Contributor

I can make backport if review passes

@ZeroIntensity
Copy link
Member Author

I'll deal with resolving conflicts later today.

@ZeroIntensity ZeroIntensity requested a review from encukou March 20, 2025 13:48
@ZeroIntensity ZeroIntensity removed needs backport to 3.12 only security fixes needs backport to 3.13 bugs and security fixes labels Mar 24, 2025
@ZeroIntensity
Copy link
Member Author

I've opted to not backport this because we're using thread state terms now.

@sharktide
Copy link
Contributor

sharktide commented Mar 24, 2025 via email

@ZeroIntensity
Copy link
Member Author

@encukou I forgot about this one. Would you mind finishing up your review when you have some time?

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

Co-authored-by: Victor Stinner <[email protected]>
@ZeroIntensity ZeroIntensity added the needs backport to 3.14 bugs and security fixes label May 8, 2025
@encukou encukou merged commit af6b3b8 into python:main May 17, 2025
26 checks passed
@miss-islington-app
Copy link

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

@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs May 17, 2025
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 17, 2025
…interpreters (pythonGH-131087)

(cherry picked from commit af6b3b8)

Co-authored-by: Peter Bierma <[email protected]>
Co-authored-by: Victor Stinner <[email protected]>
@encukou
Copy link
Member

encukou commented May 17, 2025

Just did. Sorry for the delay!

@bedevere-app
Copy link

bedevere-app bot commented May 17, 2025

GH-134130 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 May 17, 2025
encukou pushed a commit that referenced this pull request May 17, 2025
…ith subinterpreters (GH-131087) (GH-134130)

Docs: C API: Improve documentation around non-Python threads with subinterpreters (GH-131087)

(cherry picked from commit af6b3b8)

Co-authored-by: Peter Bierma <[email protected]>
Co-authored-by: Victor Stinner <[email protected]>
@ZeroIntensity ZeroIntensity deleted the document-gilstate-subinterpreters branch May 17, 2025 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants