Skip to content

Commit c0b637e

Browse files
Apply suggestions from code review.
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent e4cbc66 commit c0b637e

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

Doc/library/concurrent.interpreters.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
:mod:`!concurrent.interpreters` --- Multiple Interpreters in the Same Process
1+
:mod:`!concurrent.interpreters` --- Multiple interpreters in the same process
22
=============================================================================
33

44
.. module:: concurrent.interpreters
5-
:synopsis: Multiple Interpreters in the Same Process
5+
:synopsis: Multiple interpreters in the same process
66

77
.. moduleauthor:: Eric Snow <ericsnowcurrently@gmail.com>
88
.. sectionauthor:: Eric Snow <ericsnowcurrently@gmail.com>
@@ -38,7 +38,7 @@ interfaces on top of the lower level :mod:`!_interpreters` module.
3838
.. include:: ../includes/wasm-notavail.rst
3939

4040

41-
Key Details
41+
Key details
4242
-----------
4343

4444
Before we dive into examples, there are a small number of details
@@ -162,7 +162,7 @@ Exceptions
162162
.. XXX Add functions for communicating between interpreters.
163163
164164
165-
Basic Usage
165+
Basic usage
166166
-----------
167167

168168
Creating an interpreter and running code in it::

Doc/library/concurrent.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
The :mod:`!concurrent` package
22
==============================
33

4-
Currently, there are only two modules in this package:
4+
This package contains the following modules:
55

66
* :mod:`concurrent.futures` -- Launching parallel tasks
77
* :mod:`concurrent.interpreters` -- Multiple interpreters in the same process

Doc/whatsnew/3.14.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,10 @@ PEP 734: Multiple Interpreters in the Stdlib
132132
The CPython runtime supports running multiple copies of Python in the
133133
same process simultaneously and has done so for over 20 years.
134134
Each of these separate copies is called an "interpreter".
135-
However, the feature has been available only through the C-API.
135+
However, the feature had been available only through the C-API.
136136

137137
That limitation is removed in the 3.14 release,
138-
with the new :mod:`concurrent.interpreters` module!
138+
with the new :mod:`concurrent.interpreters` module.
139139

140140
There are at least two notable reasons why using multiple interpreters
141141
is worth considering:
@@ -147,7 +147,7 @@ For some use cases, concurrency in software enables efficiency and
147147
can simplify software, at a high level. At the same time, implementing
148148
and maintaining all but the simplest concurrency is often a struggle
149149
for the human brain. That especially applies to plain threads
150-
(e.g. :mod:`threading`), where all memory is shared between all threads.
150+
(for example, :mod:`threading`), where all memory is shared between all threads.
151151

152152
With multiple isolated interpreters, you can take advantage of a class
153153
of concurrency models, like CSP or the actor model, that have found
@@ -204,11 +204,11 @@ stopped sharing the :term:`GIL`. Likewise, we expect to slowly see
204204
libraries on PyPI for high-level abstractions on top of interpreters.
205205

206206
Regarding extension modules, work is in progress to update some PyPI
207-
projects, as well as tools like Cython, PyBind11, Nanobind, and PyO3.
207+
projects, as well as tools like Cython, pybind11, nanobind, and PyO3.
208208
The steps for isolating an extension module are found at
209209
:ref:`isolating-extensions-howto`. Isolating a module has a lot of
210210
overlap with what is required to support
211-
:ref:`free-threadeding <whatsnew314-free-threaded-cpython>`,
211+
:ref:`free-threading <whatsnew314-free-threaded-cpython>`,
212212
so the ongoing work in the community in that area will help accelerate
213213
support for multiple interpreters.
214214

0 commit comments

Comments
 (0)