python / python/cpython

isinstance is calling ob.__getattribute__ as a fallback instead of object.__class__.__get__

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

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

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

説明

BPO 32683
Nosy @rhettinger, @pfmoore, @stevendaprano, @bitdancer, @ethanfurman, @mr-nfamous, @P403n1x87

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 2018-01-26.21:10:40.522>
labels = ['interpreter-core', '3.7', 'library']
title = 'isinstance is calling ob.__getattribute__ as a fallback instead of object.__class__.__get__'
updated_at = <Date 2021-12-10.11:41:23.463>
user = 'https://github.com/mr-nfamous'

bugs.python.org fields:

activity = <Date 2021-12-10.11:41:23.463>
actor = 'steven.daprano'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Interpreter Core', 'Library (Lib)']
creation = <Date 2018-01-26.21:10:40.522>
creator = 'bup'
dependencies = []
files = []
hgrepos = []
issue_num = 32683
keywords = []
message_count = 16.0
messages = ['310793', '310814', '310823', '408122', '408128', '408131', '408133', '408135', '408136', '408141', '408165', '408170', '408171', '408172', '408188', '408192']
nosy_count = 7.0
nosy_names = ['rhettinger', 'paul.moore', 'steven.daprano', 'r.david.murray', 'ethan.furman', 'bup', 'Gabriele Tornetta']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = None
url = 'https://bugs.python.org/issue32683'
versions = ['Python 3.7']

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

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

はじめの一歩

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

調査の方向性

Issue にはソースファイル、テスト、エントリーポイントの名前が記載されていません。まず、タイトルに記載された isinstance の動作を再現し、interpreter-core とライブラリの実装を追跡してください。フォールバック動作が修正され、回帰テストでカバーされれば完了です。

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

評価

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

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

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