python / python/cpython

Resize dict on del/pop

未關閉
#76,804 9 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

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

描述

BPO 32623
Nosy @gvanrossum, @tim-one, @rhettinger, @methane, @serhiy-storchaka, @1st1, @xgid
PRs
  • python/cpython#5297
  • python/cpython#5300
  • Dependencies
  • bpo-33205: GROWTH_RATE prevents dict shrinking
  • 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-22.16:37:38.096>
    labels = ['interpreter-core', 'type-feature', '3.8']
    title = 'Resize dict on del/pop'
    updated_at = <Date 2020-08-04.16:02:32.429>
    user = 'https://github.com/1st1'
    

    bugs.python.org fields:

    activity = <Date 2020-08-04.16:02:32.429>
    actor = 'vstinner'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Interpreter Core']
    creation = <Date 2018-01-22.16:37:38.096>
    creator = 'yselivanov'
    dependencies = ['33205']
    files = []
    hgrepos = []
    issue_num = 32623
    keywords = ['patch']
    message_count = 9.0
    messages = ['310427', '310433', '310548', '310570', '310571', '310604', '310607', '310649', '310654']
    nosy_count = 7.0
    nosy_names = ['gvanrossum', 'tim.peters', 'rhettinger', 'methane', 'serhiy.storchaka', 'yselivanov', 'xgdomingo']
    pr_nums = ['5297', '5300']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue32623'
    versions = ['Python 3.8']
    

    貢獻指南

    開啟貢獻指南

    從這裡開始

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

    研究方向

    首先檢視此 issue 中描述的 dict 刪除和 pop 行為,然後閱讀有關 dict 縮容的相依項 BPO-33205。現有的 PR python/cpython#5297 和 #5300 是相關的切入點;比較它們的狀態,並判斷所要求的 resizing 行為是否已獲得完整處理。

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

    評估

    技術堆疊
    python
    領域
    compilers
    Issue 類型
    功能
    難度
    4/5
    預估耗時
    3-5 天
    活躍度
    停滯
    描述清晰度
    需要釐清
    新手友好度
    25/100

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

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