Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

[3.13] Docs: C API: Fix the incorrectPyThreadState_Swap documentation#133900

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

ZeroIntensity
Copy link
Member

@ZeroIntensityZeroIntensity commentedMay 11, 2025
edited
Loading

I've already fixed this for main and 3.14 ingh-127990, but that wasn't backported to 3.13. I'm not planning on fixing any other 3.13 docs, butPyThreadState_Swap is especially bad, because the documentation says you need to hold the GIL to call it, which is wrong and would defeat the whole point of the function if it were true. I've seen people get confused by that on several different occasions.


📚 Documentation preview 📚:https://cpython-previews--133900.org.readthedocs.build/en/133900/c-api/init.html#c.PyThreadState_Swap

@kumaraditya303kumaraditya303 merged commit8d92823 intopython:3.13May 19, 2025
32 checks passed
@github-project-automationgithub-project-automationbot moved this fromTodo toDone inDocs PRsMay 19, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@kumaraditya303kumaraditya303kumaraditya303 approved these changes

@encukouencukouAwaiting requested review from encukou

Assignees
No one assigned
Labels
docsDocumentation in the Doc dirskip issueskip newstopic-C-API
Projects
Status: Done
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@ZeroIntensity@kumaraditya303

[8]ページ先頭

©2009-2025 Movatter.jp