python / python/cpython

Support efficient sharing of all immutable builtins in sub interpreters

オープン
#157,047 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

interpreter-core topic-subinterpreters type-feature
主要言語
Python
スター
77.2k
フォーク
35.9k
PR マージ指標
PR 指標を取得中

説明

Feature or enhancement

Proposal:

The interpreters API already supports efficiently sharing of most immutable builtins.

I think it would be useful to extend support to the rest as well:

  • frozenset similar to how tuples are handled (#111628)
  • frozendict as proposed in #148234
  • complex #157051
  • maybe slice?
  • maybe range?
  • NotImplemented and Ellipsis as implemented in #118965 though might be less useful in practice
Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs
  • gh-157051

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

interpreters API の sharing-objects ドキュメントと、#111628、#148234、#157051、#118965 にリンクされている議論から始めてください。どの不変組み込み型がまだサポートされていないか、また各提案がまだスコープ内にあるかを判断してください。完了とは、合意されたオブジェクトを適切なカバレッジで効率的に共有でき、リンクされた PR ですでに対応されている作業を重複させないことを意味します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
backend
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。