Skip to content

Commit

Permalink
pythonGH-109190: Copyedit 3.12 What's New: PEP 684 (pythonGH-109657)
Browse files Browse the repository at this point in the history
(cherry picked from commit e94a223)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
  • Loading branch information
AA-Turner authored and miss-islington committed Sep 22, 2023
1 parent 0015a9a commit e5972a4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Doc/whatsnew/3.12.rst
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,11 @@ can be used to customize buffer creation.
PEP 684: A Per-Interpreter GIL
------------------------------

Sub-interpreters may now be created with a unique GIL per interpreter.
:pep:`684` introduces a per-interpreter :term:`GIL <global interpreter lock>`,
so that sub-interpreters may now be created with a unique GIL per interpreter.
This allows Python programs to take full advantage of multiple CPU
cores.
cores. This is currently only available through the C-API,
though a Python API is :pep:`anticipated for 3.13 <554>`.

Use the new :c:func:`Py_NewInterpreterFromConfig` function to
create an interpreter with its own GIL::
Expand All @@ -314,8 +316,6 @@ create an interpreter with its own GIL::
For further examples how to use the C-API for sub-interpreters with a
per-interpreter GIL, see :source:`Modules/_xxsubinterpretersmodule.c`.

A Python API is anticipated for 3.13. (See :pep:`554`.)

(Contributed by Eric Snow in :gh:`104210`, etc.)

.. _whatsnew312-pep669:
Expand Down

0 comments on commit e5972a4

Please sign in to comment.