Skip to content

gh-131544: Update docs for PyType_AddWatcher #132015

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 3 commits into from
Apr 2, 2025
Merged

Conversation

corona10
Copy link
Member

@corona10 corona10 commented Apr 2, 2025

@corona10 corona10 requested review from vstinner and colesbury April 2, 2025 13:58
@bedevere-app bedevere-app bot added awaiting core review docs Documentation in the Doc dir skip news labels Apr 2, 2025
@github-project-automation github-project-automation bot moved this to Todo in Docs PRs Apr 2, 2025
@corona10 corona10 added needs backport to 3.13 bugs and security fixes and removed docs Documentation in the Doc dir skip news labels Apr 2, 2025
@corona10
Copy link
Member Author

corona10 commented Apr 2, 2025

The reason why we decided to update the documentation: #131544 (comment)

@@ -82,6 +82,9 @@ Type Objects
error (e.g. no more watcher IDs available), return ``-1`` and set an
exception.

In free-threaded builds, :c:func:`PyType_AddWatcher` is not thread-safe,
so it must be called at start up.
Copy link
Member

@vstinner vstinner Apr 2, 2025

Choose a reason for hiding this comment

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

maybe: "so it must be called at start up (before spawning the first thread)."

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

@corona10 corona10 enabled auto-merge (squash) April 2, 2025 15:02
@corona10 corona10 merged commit 25275bd into python:main Apr 2, 2025
24 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs Apr 2, 2025
@miss-islington-app
Copy link

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Apr 2, 2025
(cherry picked from commit 25275bd)

Co-authored-by: Donghee Na <donghee.na@python.org>
@bedevere-app
Copy link

bedevere-app bot commented Apr 2, 2025

GH-132019 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 Apr 2, 2025
@corona10 corona10 deleted the gh-131544 branch April 2, 2025 16:17
corona10 added a commit that referenced this pull request Apr 2, 2025
…32019)

gh-131544: Update docs for PyType_AddWatcher (gh-132015)
(cherry picked from commit 25275bd)

Co-authored-by: Donghee Na <donghee.na@python.org>
seehwan pushed a commit to seehwan/cpython that referenced this pull request Apr 16, 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.

2 participants