Faults in `inspect.getattr_static` usage snippet to resolve built-in descriptors
オープン
まだ誰も着手していません。
docs
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 35.9k
- PR マージ指標
- PR 指標を取得中
説明
Documentation
Also, the line just below calling
__get__with no arguments if the descriptor is of one of these types is wrong. It should take the original object as well.
Originally posted by @jonathandung in #150501
Do not changes these. Instead I would recommend using types.* directly instead and open a separate PR.
Originally posted by @picnixz in https://github.com/python/cpython/pull/150504#discussion_r3309836719
Linked PRs
- gh-150507
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
この issue で参照されている inspect.getattr_static のドキュメント使用スニペットから始めてください。descriptor の get 呼び出しと、types.* を直接使用するという推奨を確認してください。スニペットが合意された修正を反映し、誤った呼び出しを表示しなくなれば作業は完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- documentation
- issue の種類
- ドキュメント
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 25/100