Importing the main module twice leads to two incompatible instances

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

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

評価

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

調査の方向性

issue27607.zip のサンプルテストケースと、リンクされている BPO issue 27607 から始めて、互換性のないインスタンスを再現します。interpreter-core のインポート動作を追跡し、メインモジュールを 2 回インポートした場合の期待される結果を確立します。この動作が修正され、回帰テストでカバーされて初めて issue は完了となります。

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

説明

3.11 interpreter-core type-bug
BPO 27607
Nosy @rhettinger, @cameron-simpson, @bitdancer, @vadmium, @Vgr255, @TheLastProject, @Kwpolska
Files
  • issue27607.zip: Example test case
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2016-07-24.15:46:17.645>
    labels = ['interpreter-core', 'type-bug', '3.11']
    title = 'Importing the main module twice leads to two incompatible instances'
    updated_at = <Date 2021-06-15.17:37:28.937>
    user = 'https://github.com/TheLastProject'
    

    bugs.python.org fields:

    activity = <Date 2021-06-15.17:37:28.937>
    actor = 'iritkatriel'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Interpreter Core']
    creation = <Date 2016-07-24.15:46:17.645>
    creator = 'SylvieLorxu'
    dependencies = []
    files = ['43877']
    hgrepos = []
    issue_num = 27607
    keywords = []
    message_count = 14.0
    messages = ['271164', '271184', '271185', '271188', '271189', '271195', '271196', '271210', '271211', '271217', '271243', '271248', '271253', '271264']
    nosy_count = 7.0
    nosy_names = ['rhettinger', 'cameron', 'r.david.murray', 'martin.panter', 'abarry', 'SylvieLorxu', 'Kwpolska']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue27607'
    versions = ['Python 3.11']
    

    主要言語
    Python
    スター
    77.2k
    フォーク
    36k
    平均マージ
    1日 9時間
    マージ済み PR(30日)
    558

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

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

    はじめの一歩

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

    python/cpython のほかの issue

    python/cpython の issue をすべて見る

    似ている issue

    Python の issue をもっと見る

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

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