Skip to content

Commit 8d20c00

Browse files
Update object.rst
Co-authored-by: Victor Stinner <[email protected]>
1 parent 21cf2c4 commit 8d20c00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/c-api/object.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ Object Protocol
615615
616616
.. c:function:: int PyUnstable_IsImmortal(PyObject *obj)
617617
618-
This function returns ``1`` if *obj* is :term:`immortal`, and ``0`` otherwise. This function cannot fail.
618+
This function returns non-zero if *obj* is :term:`immortal`, and zero otherwise. This function cannot fail.
619619
620620
Immortal objects don't care about reference counting, thus they no-op calls to :c:func:`Py_INCREF`
621621
and :c:func:`Py_DECREF`. Some immutable objects such as literal strings, small integers, or special tuples

0 commit comments

Comments
 (0)