https://github.com/python/cpython/commit/74feab2bae0b5cb70ce236f2682bf167ef8664bd
commit: 74feab2bae0b5cb70ce236f2682bf167ef8664bd
branch: 3.12
author: Petr Viktorin <encu...@gmail.com>
committer: ambv <luk...@langa.pl>
date: 2024-09-06T15:46:05+02:00
summary:

[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 6754566a51a5706e8c9da0094b892113311ba20c)
(cherry picked from commit 1af74fa652b40d5ce67875ebfefd2f5a1cc28a2f)

(Unlike the original commits, this adds the entire entry.)

files:
M Doc/glossary.rst

diff --git a/Doc/glossary.rst b/Doc/glossary.rst
index d1745bf5ccd015..c85370fec84aea 100644
--- a/Doc/glossary.rst
+++ b/Doc/glossary.rst
@@ -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

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to