python / python/cpython

Inconsistent calls to __eq__ from built-in __contains__

未關閉
#71,792 5 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

3.8 (EOL) 3.9 (EOL) docs type-bug
主要語言
Python
星號
77.2k
分支
36k
PR 合併指標
PR 指標待擷取

描述

BPO 27605
Nosy @rhettinger, @terryjreedy, @stevendaprano, @bitdancer
Files
  • contains_eq.py: Example demonstrating the problem
  • 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.12:13:15.023>
    labels = ['type-bug', '3.8', '3.9', 'docs']
    title = 'Inconsistent calls to __eq__ from built-in __contains__'
    updated_at = <Date 2019-05-30.20:41:50.346>
    user = 'https://bugs.python.org/vfaronov'
    

    bugs.python.org fields:

    activity = <Date 2019-05-30.20:41:50.346>
    actor = 'cheryl.sabella'
    assignee = 'docs@python'
    closed = False
    closed_date = None
    closer = None
    components = ['Documentation']
    creation = <Date 2016-07-24.12:13:15.023>
    creator = 'vfaronov'
    dependencies = []
    files = ['43857']
    hgrepos = []
    issue_num = 27605
    keywords = []
    message_count = 5.0
    messages = ['271145', '271154', '271158', '271165', '271640']
    nosy_count = 6.0
    nosy_names = ['rhettinger', 'terry.reedy', 'steven.daprano', 'r.david.murray', 'docs@python', 'vfaronov']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'needs patch'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue27605'
    versions = ['Python 3.8', 'Python 3.9']
    

    貢獻指南

    開啟貢獻指南

    從這裡開始

    1. 先讀完整個 Issue,再讀專案的貢獻指南。
    2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
    3. Fork 儲存庫,在一個分支上完成修改。
    4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

    研究方向

    先閱讀 issue 中連結的 contains_eq.py 範例,並將其行為與相關的內建 containseq 文件進行比較。確定需要記錄或釐清哪種不一致的行為,然後驗證產生的文件是否一致地解釋觀察到的呼叫。

    由索引模型根據 Issue 內容生成。

    評估

    技術堆疊
    python
    領域
    documentation
    Issue 類型
    文件
    難度
    3/5
    預估耗時
    1-2 天
    活躍度
    停滯
    描述清晰度
    需要釐清
    新手友好度
    35/100

    把新 issue 寄到你的電子郵件信箱

    精選適合新手參與的 GitHub issue 摘要。