Skip to content

Commit 75d453b

Browse files
[3.13] pythongh-131544: Update docs for PyType_AddWatcher (pythongh-132015) (pythongh-132019)
pythongh-131544: Update docs for PyType_AddWatcher (pythongh-132015) (cherry picked from commit 25275bd) Co-authored-by: Donghee Na <donghee.na@python.org>
1 parent b1cd14b commit 75d453b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Doc/c-api/type.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ Type Objects
8282
error (e.g. no more watcher IDs available), return ``-1`` and set an
8383
exception.
8484
85+
In free-threaded builds, :c:func:`PyType_AddWatcher` is not thread-safe,
86+
so it must be called at start up (before spawning the first thread).
87+
8588
.. versionadded:: 3.12
8689
8790

0 commit comments

Comments
 (0)