]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-131544: Update docs for PyType_AddWatcher (gh-132015)
authorDonghee Na <donghee.na@python.org>
Wed, 2 Apr 2025 15:04:07 +0000 (00:04 +0900)
committerGitHub <noreply@github.com>
Wed, 2 Apr 2025 15:04:07 +0000 (15:04 +0000)
Doc/c-api/type.rst

index 862f1e67b9ad2d526803f0a60328200ba898214f..ec2867b0ce09ba113e88dd027df3daa4fdc5ce0f 100644 (file)
@@ -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