summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2024-10-16 22:50:46 (GMT)
committerGitHub <noreply@github.com>2024-10-16 22:50:46 (GMT)
commita5a7f5e16d8c3938d266703ea8fba8ffee3e3ae5 (patch)
tree8f35555767598b877e490814eca9363cdf5eea2d /Misc/NEWS.d
parenta38fef4439139743e3334c1d69f24cafdf4d71da (diff)
downloadcpython-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 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/Library/2024-09-27-15-42-55.gh-issue-124694.uUy32y.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2024-09-27-15-42-55.gh-issue-124694.uUy32y.rst b/Misc/NEWS.d/next/Library/2024-09-27-15-42-55.gh-issue-124694.uUy32y.rst
new file mode 100644
index 0000000..1aa1a46
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2024-09-27-15-42-55.gh-issue-124694.uUy32y.rst
@@ -0,0 +1,6 @@
+We've added :class:`concurrent.futures.InterpreterPoolExecutor`, which
+allows you to run code in multiple isolated interpreters. This allows you
+to circumvent the limitations of CPU-bound threads (due to the GIL). Patch
+by Eric Snow.
+
+This addition is unrelated to :pep:`734`.