]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-132346: Docs: Clarify that reference counts aren't stable between versions...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 13 Jul 2025 09:18:27 +0000 (11:18 +0200)
committerGitHub <noreply@github.com>
Sun, 13 Jul 2025 09:18:27 +0000 (09:18 +0000)
gh-132346: Docs: Clarify that reference counts aren't stable between versions (GH-132352)
(cherry picked from commit 3dbe02ccd3eefc48ac9fa14427bb4cdb82d1ebae)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Doc/glossary.rst

index 118d4fbe30fda71a735410b2d20cacd34d4027f4..9e44b156e73322239e86728a7fe85392db1d7134 100644 (file)
@@ -1163,6 +1163,11 @@ Glossary
       :func:`sys.getrefcount` function to return the
       reference count for a particular object.
 
+      In :term:`CPython`, reference counts are not considered to be stable
+      or well-defined values; the number of references to an object, and how
+      that number is affected by Python code, may be different between
+      versions.
+
    regular package
       A traditional :term:`package`, such as a directory containing an
       ``__init__.py`` file.