gh-124694: Add concurrent.futures.InterpreterPoolExecutor by ericsnowcurrently · Pull Request #124548 · python/cpython

added 4 commits

September 27, 2024 12:04

@ericsnowcurrently ericsnowcurrently changed the title Add concurrent.futures.InterpreterPoolExecutor gh-124694: Add concurrent.futures.InterpreterPoolExecutor

Sep 27, 2024

@ericsnowcurrently

@ericsnowcurrently

ZeroIntensity

ZeroIntensity

@ericsnowcurrently

@ericsnowcurrently

@ericsnowcurrently

This was referenced

Oct 23, 2024

ebonnal pushed a commit to ebonnal/cpython that referenced this pull request

Jan 12, 2025
…ongh-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