python / python/cpython

Add the interpreters Module, Implementing PEP 734

Offen
#134,939 1 Kommentar 6 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@ericsnowcurrently arbeitet bereits daran.

Seit 30.5.2025.

3.14 3.15 stdlib topic-subinterpreters type-feature
Vorherrschende Sprache
Python
Sterne
77.2k
Forks
35.9k
PR-Merge-Kennzahlen
PR-Kennzahlen ausstehend

Beschreibung

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 InterpreterPoolExecutor to use interpreters.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

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.