Different behavior for functiools.partial between inspect.isfunction() and other inspect.is*function()

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

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

評価

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

調査の方向性

まず、添付された再現プログラム isfuncs_behavior.py を実行し、functools.partial に対する結果を inspect.isfunction() およびその他の inspect.is*function() 述語と比較してください。inspect の関連する挙動と既存のテストを読み、そのうえで意図された一貫性を明確にしてテストカバレッジを追加してください。差異が解消され、回帰テストがパスすれば完了です。

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

説明

3.10 stdlib type-bug
BPO 46722
Nosy @IliyaZinoviev
Files
  • isfuncs_behavior.py
  • 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 2022-02-11.15:26:49.488>
    labels = ['type-bug', 'library', '3.10']
    title = 'Different behavior for functiools.partial between inspect.isfunction() and other inspect.is*function()'
    updated_at = <Date 2022-02-12.13:23:19.287>
    user = 'https://github.com/IliyaZinoviev'
    

    bugs.python.org fields:

    activity = <Date 2022-02-12.13:23:19.287>
    actor = 'IliyaZinoviev'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2022-02-11.15:26:49.488>
    creator = 'IliyaZinoviev'
    dependencies = []
    files = ['50621']
    hgrepos = []
    issue_num = 46722
    keywords = []
    message_count = 4.0
    messages = ['413077', '413111', '413127', '413128']
    nosy_count = 2.0
    nosy_names = ['Kevin Shweh', 'IliyaZinoviev']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue46722'
    versions = ['Python 3.10']
    

    主要言語
    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 を短くまとめたダイジェスト。