Skip to content

Commit 7e416e7

Browse files
committed
Add note about the C API.
1 parent 64c9a52 commit 7e416e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/glossary.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,8 @@ Glossary
658658
and therefore it is never deallocated while the interpreter is running.
659659
For example, :const:`True` and :const:`None` are immortal in CPython.
660660

661-
Immortal objects can be identified via :func:`sys._is_immortal`.
661+
Immortal objects can be identified via :func:`sys._is_immortal`, or
662+
via :c:func:`PyUnstable_IsImmortal` in the C API.
662663

663664
immutable
664665
An object with a fixed value. Immutable objects include numbers, strings and

0 commit comments

Comments
 (0)