Skip to content

Commit 5b6eb17

Browse files
Minor docs fixes.
1 parent 382cff2 commit 5b6eb17

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

Doc/library/interpreters.rst

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ This module defines the following functions:
5858

5959
.. function:: list_all()
6060

61-
Return a :class:`list` of :class:`Interpreter`,
61+
Return a :class:`list` of :class:`Interpreter` objects,
6262
one for each existing interpreter.
6363

6464
.. function:: get_current()
@@ -96,12 +96,12 @@ Interpreter objects
9696

9797
(read-only)
9898

99-
Where the interpreter came from.
99+
A string describing where the interpreter came from.
100100

101101
.. method:: is_running()
102102

103-
Is the interpreter currently executing code in its
104-
:mod:`!__main__` module?
103+
Return ``True`` if the interpreter is currently executing code
104+
in its :mod:`!__main__` module and ``False`` otherwise.
105105

106106
.. method:: close()
107107

@@ -118,7 +118,8 @@ Interpreter objects
118118

119119
.. method:: call(callable, /, *args, **kwargs)
120120

121-
Run the given function in the interpreter (in the current thread).
121+
Return the result of calling running the given function in the
122+
interpreter (in the current thread).
122123

123124
.. method:: call_in_thread(callable, /, *args, **kwargs)
124125

@@ -160,9 +161,7 @@ Exceptions
160161
Basic Usage
161162
-----------
162163

163-
Creating an interpreter and running code in it:
164-
165-
::
164+
Creating an interpreter and running code in it::
166165

167166
import interpreters
168167

Doc/whatsnew/3.14.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ 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 Py03.
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
@@ -215,6 +215,9 @@ support for multiple interpreters.
215215
Also added in 3.14: :ref:`concurrent.futures.InterpreterPoolExecutor
216216
<whatsnew314-concurrent-futures-interp-pool>`.
217217

218+
.. seealso::
219+
:pep:`734`.
220+
218221

219222
.. _whatsnew314-pep750:
220223

0 commit comments

Comments
 (0)