diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2024-10-16 22:50:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-16 22:50:46 (GMT) |
commit | a5a7f5e16d8c3938d266703ea8fba8ffee3e3ae5 (patch) | |
tree | 8f35555767598b877e490814eca9363cdf5eea2d /Doc/whatsnew | |
parent | a38fef4439139743e3334c1d69f24cafdf4d71da (diff) | |
download | cpython-a5a7f5e16d8c3938d266703ea8fba8ffee3e3ae5.zip cpython-a5a7f5e16d8c3938d266703ea8fba8ffee3e3ae5.tar.gz cpython-a5a7f5e16d8c3938d266703ea8fba8ffee3e3ae5.tar.bz2 |
gh-124694: Add concurrent.futures.InterpreterPoolExecutor (gh-124548)
This is an implementation of InterpreterPoolExecutor that builds on ThreadPoolExecutor.
(Note that this is not tied to PEP 734, which is strictly about adding a new stdlib module.)
Possible future improvements:
* support passing a script for the initializer or to submit()
* support passing (most) arbitrary functions without pickling
* support passing closures
* optionally exec functions against __main__ instead of the their original module
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.14.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.14.rst b/Doc/whatsnew/3.14.rst index b106578..9543af3 100644 --- a/Doc/whatsnew/3.14.rst +++ b/Doc/whatsnew/3.14.rst @@ -225,6 +225,14 @@ ast * The ``repr()`` output for AST nodes now includes more information. (Contributed by Tomas R in :gh:`116022`.) +concurrent.futures +------------------ + +* Add :class:`~concurrent.futures.InterpreterPoolExecutor`, + which exposes "subinterpreters (multiple Python interpreters in the + same process) to Python code. This is separate from the proposed API + in :pep:`734`. + (Contributed by Eric Snow in :gh:`124548`.) ctypes ------ |