Skip to content

Commit f00e23f

Browse files
Apply suggestions from code review
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
1 parent c897a08 commit f00e23f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/c-api/object.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -804,15 +804,15 @@ Object Protocol
804804
805805
.. c:function:: int PyUnstable_SetImmortal(PyObject *op)
806806
807-
Marks the object *op* immortal. The argument should be uniquely referenced by
807+
Marks the object *op* :term:`immortal`. The argument should be uniquely referenced by
808808
the calling thread.
809809
810-
This is a one-way process: objects can only be made immortal, they cannot be
810+
This is a one-way process: objects can only be made immortal; they cannot be
811811
made mortal once again. Immortal objects do not participate in reference counting
812812
and will never be garbage collected.
813813
814814
This function is intended to be used soon after *op* is created, by the code that
815-
creates it, such as in the object's tp_new slot.
815+
creates it, such as in the object's :c:member:`~PyTypeObject.tp_new` slot.
816816
Returns 1 if the object was made immortal and returns 0 if it was not.
817817
This function cannot fail.
818818

0 commit comments

Comments
 (0)