Skip to content

Commit

Permalink
Add note about the C API.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroIntensity committed Jan 27, 2025
1 parent 64c9a52 commit 7e416e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Doc/glossary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,8 @@ Glossary
and therefore it is never deallocated while the interpreter is running.
For example, :const:`True` and :const:`None` are immortal in CPython.

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

immutable
An object with a fixed value. Immutable objects include numbers, strings and
Expand Down

0 comments on commit 7e416e7

Please sign in to comment.