Add the interpreters Module, Implementing PEP 734
Open
@ericsnowcurrently is already working on this.
Since May 30, 2025.
3.14
3.15
stdlib
topic-subinterpreters
type-feature
- Dominant language
- Python
- Stars
- 77.2k
- Forks
- 35.9k
- PR merge metrics
- PR metrics pending
Description
Feature or enhancement
Proposal:
(This is effectively the successor issue to gh-76785.)
Assuming PEP 734 is accepted (hopefully for 3.14), this issue covers the implementation.
Note that the base implementation already exists as Lib/test/support/interpreters. Thus "implementing" the PEP will amount to moving the files to Lib/interpreters and updating associated references.
TODO:
- move files from Lib/test/support/interpreters to Lib/interpreters
- add Docs/library/interpreters.rst, etc.
- add a multiple-interpreters howto doc (related: gh-123152)
- update
InterpreterPoolExecutorto useinterpreters.Interpreter
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Linked PRs
- gh-133958
- gh-135414
- gh-135902
- gh-136141
- gh-136143
- gh-136564
- gh-136605
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.