Skip to content

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
Pranjal095 pushed a commit to Pranjal095/cpython that referenced this pull request Jul 12, 2025
taegyunkim pushed a commit to taegyunkim/cpython that referenced this pull request Aug 4, 2025
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