mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
[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 commit6754566a51) (cherry picked from commit1af74fa652) (Unlike the original commits, this adds the entire entry.)
This commit is contained in:
parent
407505da8e
commit
74feab2bae
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue