File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -1184,6 +1184,12 @@ code, or when embedding the Python interpreter:
11841184 interpreter lock is also shared by all threads, regardless of to which
11851185 interpreter they belong.
11861186
1187+ .. versionchanged:: 3.12
1188+
1189+ :pep:`684` introduced the possibility
1190+ of a :ref:`per-interpreter GIL <per-interpreter-gil>`.
1191+ See :c:func:`Py_NewInterpreterFromConfig`.
1192+
11871193
11881194.. c:type:: PyThreadState
11891195
@@ -1875,6 +1881,8 @@ function. You can create and destroy them using the following functions:
18751881 haven't been explicitly destroyed at that point.
18761882
18771883
1884+ .. _per-interpreter-gil:
1885+
18781886A Per-Interpreter GIL
18791887---------------------
18801888
@@ -1886,7 +1894,7 @@ being blocked by other interpreters or blocking any others. Thus a
18861894single Python process can truly take advantage of multiple CPU cores
18871895when running Python code. The isolation also encourages a different
18881896approach to concurrency than that of just using threads.
1889- (See :pep:`554`.)
1897+ (See :pep:`554` and :pep:`684` .)
18901898
18911899Using an isolated interpreter requires vigilance in preserving that
18921900isolation. That especially means not sharing any objects or mutable
You can’t perform that action at this time.
0 commit comments