https://github.com/python/cpython/commit/75d453b0ab852b1cc295ea602b3df413ef0ce569
commit: 75d453b0ab852b1cc295ea602b3df413ef0ce569
branch: 3.13
author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com>
committer: corona10 <donghee.n...@gmail.com>
date: 2025-04-03T01:24:43+09:00
summary:

[3.13] gh-131544: Update docs for PyType_AddWatcher (gh-132015) (gh-132019)

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

Co-authored-by: Donghee Na <donghee...@python.org>

files:
M Doc/c-api/type.rst

diff --git a/Doc/c-api/type.rst b/Doc/c-api/type.rst
index 4ba3f7ac2fafa4..be87b689fa1c22 100644
--- a/Doc/c-api/type.rst
+++ b/Doc/c-api/type.rst
@@ -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 (before spawning the first thread).
+
    .. versionadded:: 3.12
 
 

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to