Skip to content

Commit 4a87acb

Browse files
colesburyencukou
andauthored
Update Doc/c-api/object.rst
Co-authored-by: Petr Viktorin <[email protected]>
1 parent 95cad2d commit 4a87acb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/c-api/object.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,8 @@ Object Protocol
645645
return 0;
646646
647647
This is intended as a building block for managing weak references
648-
without the overhead of a Python :c:type:`!PyWeakReference`.
648+
without the overhead of a Python :ref:`weak reference object <weakrefobjects>`.
649+
649650
Typically, correct use of this function requires support from *obj*'s
650651
deallocator (:c:member:`~PyTypeObject.tp_dealloc`).
651652
For example, the following sketch could be adapted to implement a

0 commit comments

Comments
 (0)