8000 [3.12] gh-120426: Add the glossary term "immortal" (GH-123191) (GH-12… · python/cpython@74feab2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 74feab2

Browse files
authored
[3.12] gh-120426: Add the glossary term "immortal" (GH-123191) (GH-123491) (#123636)
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.)
1 parent 407505d commit 74feab2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Doc/glossary.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,14 @@ Glossary
591591
:ref:`idle` is a basic editor and interpreter environment
592592
which ships with the standard distribution of Python.
593593

594+
immortal
595+
*Immortal objects* are a CPython implementation detail introduced
596+
in :pep:`683`.
597+
598+
If an object is immortal, its :term:`reference count` is never modified,
599+
and therefore it is never deallocated while the interpreter is running.
600+
For example, :const:`True` and :const:`None` are immortal in CPython.
601+
594602
immutable
595603
An object with a fixed value. Immutable objects include numbers, strings and
596604
tuples. Such an object cannot be altered. A new object has to

0 commit comments

Comments
 (0)
0