Skip to content

.popitem() is inconsistent in collections and collections.abc #88913

@AlexWaygood

Description

@AlexWaygood
BPO 44750
Nosy @rhettinger, @AlexWaygood
Files
  • collections popitem weirdness.py: Short script demonstrating unexpected behaviour of .popitem() in collections and collections.abc modules
  • 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 = 'https://github.com/rhettinger'
    closed_at = <Date 2021-07-27.20:43:16.677>
    created_at = <Date 2021-07-27.17:35:28.063>
    labels = ['invalid', 'type-bug', 'library', '3.9']
    title = '.popitem() is inconsistent in collections and collections.abc'
    updated_at = <Date 2021-07-27.21:20:00.022>
    user = 'https://github.com/AlexWaygood'

    bugs.python.org fields:

    activity = <Date 2021-07-27.21:20:00.022>
    actor = 'AlexWaygood'
    assignee = 'rhettinger'
    closed = True
    closed_date = <Date 2021-07-27.20:43:16.677>
    closer = 'rhettinger'
    components = ['Library (Lib)']
    creation = <Date 2021-07-27.17:35:28.063>
    creator = 'AlexWaygood'
    dependencies = []
    files = ['50187']
    hgrepos = []
    issue_num = 44750
    keywords = []
    message_count = 3.0
    messages = ['398310', '398317', '398319']
    nosy_count = 3.0
    nosy_names = ['rhettinger', 'stutzbach', 'AlexWaygood']
    pr_nums = []
    priority = 'normal'
    resolution = 'not a bug'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue44750'
    versions = ['Python 3.9']

    Metadata

    Metadata

    Assignees

    Labels

    3.9 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions