Skip to content

Commit 6ef3a96

Browse files
committed
Add seealso note to PyWeakref_NewRef() and PyWeakref_NewProxy() docs.
1 parent f209726 commit 6ef3a96

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Doc/c-api/weakref.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ as much as it can.
4545
weakly referenceable object, or if *callback* is not callable, ``None``, or
4646
``NULL``, this will return ``NULL`` and raise :exc:`TypeError`.
4747
48+
.. seealso::
49+
:c:func:`PyType_SUPPORTS_WEAKREFS` for checking if *ob* is weakly
50+
referenceable.
51+
4852
4953
.. c:function:: PyObject* PyWeakref_NewProxy(PyObject *ob, PyObject *callback)
5054
@@ -57,6 +61,10 @@ as much as it can.
5761
is not a weakly referenceable object, or if *callback* is not callable,
5862
``None``, or ``NULL``, this will return ``NULL`` and raise :exc:`TypeError`.
5963
64+
.. seealso::
65+
:c:func:`PyType_SUPPORTS_WEAKREFS` for checking if *ob* is weakly
66+
referenceable.
67+
6068
6169
.. c:function:: int PyWeakref_GetRef(PyObject *ref, PyObject **pobj)
6270

0 commit comments

Comments
 (0)