python / python/cpython

Resize dict on del/pop

Open
#76,804 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

3.8 (EOL) interpreter-core type-feature
Dominant language
Python
Stars
77.2k
Forks
36k
PR merge metrics
PR metrics pending

Description

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']
    

    Contributor guide

    Open the contributing guide

    First steps

    1. Read the whole issue, then the project's contributing guide.
    2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
    3. Fork the repository and make your change on a branch.
    4. Open a pull request that references the issue number.

    Research direction

    Start by reviewing the dict deletion and pop behavior described in this issue, then read the dependency BPO-33205 about dict shrinking. The existing PRs python/cpython#5297 and #5300 are the relevant entry points; compare their status and determine whether the requested resizing behavior is fully addressed.

    Written by the indexing model from the issue text.

    Assessment

    Tech stack
    python
    Domain
    compilers
    Issue type
    Feature
    Difficulty
    4/5
    Estimated time
    3-5 days
    Activity status
    Stale
    Clarity
    Needs clarification
    Newbie friendliness
    25/100

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.