python / python/cpython

Add the interpreters Module, Implementing PEP 734

Đang mở
#134,939 1 bình luận 6 reaction 1 người được giao Xem trên GitHub

@ericsnowcurrently đang làm issue này rồi.

Từ ngày 30/5/2025.

3.14 3.15 stdlib topic-subinterpreters type-feature
Ngôn ngữ chính
Python
Star
77.2k
Fork
35.9k
Chỉ số merge pull request
Chỉ số pull request đang chờ

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.