]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-141004: Document `PyWeakref_CheckRefExact` (GH-141279)
authorStan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Sun, 9 Nov 2025 15:32:39 +0000 (15:32 +0000)
committerGitHub <noreply@github.com>
Sun, 9 Nov 2025 15:32:39 +0000 (10:32 -0500)
Doc/c-api/weakref.rst

index 14ec9d951c4a5fddba6402cc34efb6c9e96b8513..39e4febd3ef0f2d7e1d73fcd6233dade8d52c85e 100644 (file)
@@ -19,7 +19,14 @@ as much as it can.
 
 .. c:function:: int PyWeakref_CheckRef(PyObject *ob)
 
-   Return non-zero if *ob* is a reference object.  This function always succeeds.
+   Return non-zero if *ob* is a reference object or a subclass of the reference
+   type.  This function always succeeds.
+
+
+.. c:function:: int PyWeakref_CheckRefExact(PyObject *ob)
+
+   Return non-zero if *ob* is a reference object, but not a subclass of the
+   reference type.  This function always succeeds.
 
 
 .. c:function:: int PyWeakref_CheckProxy(PyObject *ob)