Skip to content

Odd behavior when unpacking itertools.groupby #74531

@MattGilson

Description

@MattGilson
BPO 30346
Nosy @tim-one, @rhettinger, @serhiy-storchaka
PRs
  • bpo-30346: Invalidate groupby() sub-iterator when move the primary iterator #1568
  • bpo-30346: Exhaust groupby() sub-iterator when move the primary iterator #1569
  • Files
  • groupby-fix.patch
  • groupby-invalid.diff
  • 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/serhiy-storchaka'
    closed_at = <Date 2017-09-24.10:39:26.997>
    created_at = <Date 2017-05-11.17:33:01.458>
    labels = ['type-bug', '3.7']
    title = 'Odd behavior when unpacking `itertools.groupby`'
    updated_at = <Date 2017-09-24.11:01:22.326>
    user = 'https://bugs.python.org/MattGilson'

    bugs.python.org fields:

    activity = <Date 2017-09-24.11:01:22.326>
    actor = 'serhiy.storchaka'
    assignee = 'serhiy.storchaka'
    closed = True
    closed_date = <Date 2017-09-24.10:39:26.997>
    closer = 'serhiy.storchaka'
    components = []
    creation = <Date 2017-05-11.17:33:01.458>
    creator = 'Matt Gilson'
    dependencies = []
    files = ['46860', '47167']
    hgrepos = []
    issue_num = 30346
    keywords = ['patch']
    message_count = 20.0
    messages = ['293511', '293521', '293526', '293529', '293530', '293533', '293552', '293565', '293568', '293574', '293578', '293599', '293621', '294643', '294722', '302718', '302843', '302844', '302846', '302847']
    nosy_count = 5.0
    nosy_names = ['tim.peters', 'rhettinger', 'serhiy.storchaka', 'mgilson', 'Matt Gilson']
    pr_nums = ['1568', '1569']
    priority = 'low'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue30346'
    versions = ['Python 3.7']

    Metadata

    Metadata

    Labels

    3.7 (EOL)end of lifetype-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