Running Multiple Interpreters in Python Code – Speed
A new PEP-0734 has been accepted to enhance Python's capability to run multiple interpreters within a single process. This development aims to improve multitasking by allowing separate Global Interpreter Locks (GILs) for each interpreter. The new concurrent.interpreters module will provide a user-friendly API for creating and managing these interpreters.
- ▪PEP-0734 proposes a new interpreters module to support multiple interpreters in Python.
- ▪The module will allow for true multitasking with one GIL per interpreter.
- ▪Communication between interpreters will be facilitated through a basic Queue class.
Opening excerpt (first ~120 words) tap to expand
Running Multiple Interpreters in Python Code — Incredible Speed 19 May, 2026 On June 5, 2025, PEP-0734 was accepted. Judging by the information on the official website, it is a continuation of PEP-0554. This PEP proposes adding a new interpreters module to support checking, creating, and running code in multiple interpreters within the current process. And going further, it is a continuation of PEP-0684, which proposes one GIL per interpreter. Several full-fledged interpreters working side by side.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at alexeev-dev notes.