gh-141004: Document `PyWeakref_CheckRefExact` (GH-141279)
(cherry picked from commit
60155329a0a83a2b9e740f0c0de41c9d44f5a053)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
.. 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)