Skip to content

Commit c07f6d6

Browse files
committed
gh-144161: Clarify additional immortalization in free-threaded build
Clarify that the objects listed in the free-threading HOWTO are additional immortalizations specific to the free-threaded build. This addresses the inconsistency with sys.intern() documentation, which describes the default (mortal) behavior.
1 parent f3dd0ca commit c07f6d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/howto/free-threading-python.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,12 @@ This section describes known limitations of the free-threaded CPython build.
9999
Immortalization
100100
---------------
101101

102-
In the free-threaded build, some objects are :term:`immortal`.
102+
The free-threaded build introduces additional :term:`immortal` objects.
103103
Immortal objects are not deallocated and have reference counts that are
104104
never modified. This is done to avoid reference count contention that would
105105
prevent efficient multi-threaded scaling.
106106

107-
As of the 3.14 release, immortalization is limited to:
107+
As of the 3.14 release, this additional immortalization is limited to:
108108

109109
* Code constants: numeric literals, string literals, and tuple literals
110110
composed of other constants.

0 commit comments

Comments
 (0)