https://github.com/python/cpython/commit/60155329a0a83a2b9e740f0c0de41c9d44f5a053
commit: 60155329a0a83a2b9e740f0c0de41c9d44f5a053
branch: main
author: Stan Ulbrych <[email protected]>
committer: ZeroIntensity <[email protected]>
date: 2025-11-09T10:32:39-05:00
summary:

gh-141004: Document `PyWeakref_CheckRefExact` (GH-141279)

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

diff --git a/Doc/c-api/weakref.rst b/Doc/c-api/weakref.rst
index 14ec9d951c4a5f..39e4febd3ef0f2 100644
--- a/Doc/c-api/weakref.rst
+++ b/Doc/c-api/weakref.rst
@@ -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)

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to