Skip to content

Commit c897a08

Browse files
minor fixes
1 parent cb6cc99 commit c897a08

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
@@ -802,16 +802,16 @@ Object Protocol
802802
803803
.. versionadded:: 3.14
804804
805-
.. c:function:: int PyUnstable_SetImmortal(PyObject *obj)
805+
.. 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* immortal. The argument should be uniquely referenced by
808808
the calling thread.
809809
810810
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
814-
This function is intended to be used soon after op is created, by the code that
814+
This function is intended to be used soon after *op* is created, by the code that
815815
creates it, such as in the object's tp_new slot.
816816
Returns 1 if the object was made immortal and returns 0 if it was not.
817817
This function cannot fail.

0 commit comments

Comments
 (0)