Reloading a lazy module that has not yet been materailized should be no-op
オープン
まだ誰も着手していません。
stdlib
topic-importlib
type-bug
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 35.9k
- PR マージ指標
- PR 指標を取得中
説明
Bug report
Bug description:
Reloading a not-yet materialized lazy module is not supported well. It makes sense for the reloading in this case to be no-op since when the actual loading happens e.g. by accessing an attribute, the new code will be loaded anyway. Currently, the reload tries to reload the module while its loaded is lazy in the first place.
CPython versions tested on:
3.13, 3.12, 3.14, CPython main branch
Operating systems tested on:
Linux
Linked PRs
- gh-139857
- gh-142649
- gh-143584
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、リンクされている PR gh-139857、gh-142649、gh-143584 を確認してください。これらには、この動作についてすでに提案されている作業が示されています。lazy module の reload 経路を追跡し、materialization 前の reload が no-op である一方、後続の属性アクセスでは更新されたコードが引き続き読み込まれることを検証してください。完了時には regression coverage も含める必要があります。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- backend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 30/100