Skip to content

Commit afa52a1

Browse files
[3.14] gh-141004: Document PyWeakref_CheckRefExact (GH-141279) (GH-141290)
gh-141004: Document `PyWeakref_CheckRefExact` (GH-141279) (cherry picked from commit 6015532) Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
1 parent 7905374 commit afa52a1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Doc/c-api/weakref.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,14 @@ as much as it can.
1919
2020
.. c:function:: int PyWeakref_CheckRef(PyObject *ob)
2121
22-
Return non-zero if *ob* is a reference object. This function always succeeds.
22+
Return non-zero if *ob* is a reference object or a subclass of the reference
23+
type. This function always succeeds.
24+
25+
26+
.. c:function:: int PyWeakref_CheckRefExact(PyObject *ob)
27+
28+
Return non-zero if *ob* is a reference object, but not a subclass of the
29+
reference type. This function always succeeds.
2330
2431
2532
.. c:function:: int PyWeakref_CheckProxy(PyObject *ob)

0 commit comments

Comments
 (0)