Skip to content

Commit

Permalink
[3.13] gh-120426: Add the glossary term "immortal" (GH-123191) (#123491)
Browse files Browse the repository at this point in the history
Add the glossary term "immortal", mark it as an implementation detail

(cherry picked from commit 6754566)
(cherry picked from commit 1af74fa)

(Unlike the original commits, this adds the entire entry.)
  • Loading branch information
encukou committed Sep 3, 2024
1 parent ff4ad2e commit 999b843
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Doc/glossary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,14 @@ Glossary
:ref:`idle` is a basic editor and interpreter environment
which ships with the standard distribution of Python.

immortal
*Immortal objects* are a CPython implementation detail introduced
in :pep:`683`.

If an object is immortal, its :term:`reference count` is never modified,
and therefore it is never deallocated while the interpreter is running.
For example, :const:`True` and :const:`None` are immortal in CPython.

immutable
An object with a fixed value. Immutable objects include numbers, strings and
tuples. Such an object cannot be altered. A new object has to
Expand Down

0 comments on commit 999b843

Please sign in to comment.