Skip to content

Commit a41538d

Browse files
committed
Improve docs.
1 parent 1592d55 commit a41538d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎Doc/c-api/object.rst‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -846,10 +846,10 @@ Object Protocol
846846
counting and will never be garbage collected. If the object is GC-tracked,
847847
it is untracked.
848848
849-
Returns 1 if the object was made immortal and 0 if it was already immortal
850-
or is a :class:`str` instance.
851-
Returns -1 with an exception set if allocating bookkeeping for an immortal
852-
frame or generator fails.
849+
Returns 1 if the object was made immortal and 0 if the object cannot be made
850+
immortal (such as when the object is already immortal).
851+
Returns -1 with an exception set upon failure.
852+
853853
854854
.. warning::
855855

0 commit comments

Comments
 (0)