python / python/cpython

simplify overlaps function in ipaddress.py

未關閉
#82,516 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

stdlib type-feature
主要語言
Python
星號
77.2k
分支
36k
PR 合併指標
PR 指標待擷取

描述

BPO 38335
Nosy @serhiy-storchaka, @s-sanjay
PRs
  • python/cpython#16519
  • Files
  • skip_broadcast_in.patch
  • 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 2019-10-01.11:43:43.734>
    labels = ['3.8', '3.7', 'library', '3.9']
    title = 'simplify overlaps function in ipaddress.py'
    updated_at = <Date 2019-10-05.12:25:55.200>
    user = 'https://github.com/s-sanjay'
    

    bugs.python.org fields:

    activity = <Date 2019-10-05.12:25:55.200>
    actor = 'Sanjay'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2019-10-01.11:43:43.734>
    creator = 'Sanjay'
    dependencies = []
    files = ['48634']
    hgrepos = []
    issue_num = 38335
    keywords = ['patch']
    message_count = 3.0
    messages = ['353676', '354004', '354005']
    nosy_count = 2.0
    nosy_names = ['serhiy.storchaka', 'Sanjay']
    pr_nums = ['16519']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue38335'
    versions = ['Python 3.5', 'Python 3.6', 'Python 3.7', 'Python 3.8', 'Python 3.9']
    

    貢獻指南

    開啟貢獻指南

    從這裡開始

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

    研究方向

    從 ipaddress.py 中的 overlaps 函式開始,檢視所參照的 skip_broadcast_in.patch 和 PR 16519。根據現有行為確認預期的簡化方式,然後執行相關的 ipaddress 測試;完成的標準是函式得到簡化且結果不變。

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

    評估

    技術堆疊
    python
    領域
    networking
    Issue 類型
    重構
    難度
    2/5
    預估耗時
    1-3 小時
    活躍度
    停滯
    描述清晰度
    基本清楚
    新手友好度
    25/100

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

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