Skip to content

Inconsistent usage of next/__next__ in ABC collections; collections.Iterator is not compatible with Python 2.6 iterators. #49170

@jrosiek

Description

@jrosiek
mannequin
BPO 4920
Nosy @rhettinger
Files
  • example1.py: Example code for problem 1
  • example2.py: Example code for problem 2
  • _abcoll.patch: Suggested 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 = 'https://github.com/rhettinger'
    closed_at = <Date 2009-01-29.00:11:02.698>
    created_at = <Date 2009-01-12.11:10:08.012>
    labels = ['type-bug', 'library']
    title = 'Inconsistent usage of next/__next__ in ABC collections; collections.Iterator is not compatible with Python 2.6 iterators.'
    updated_at = <Date 2009-01-29.00:11:02.697>
    user = 'https://bugs.python.org/jrosiek'

    bugs.python.org fields:

    activity = <Date 2009-01-29.00:11:02.697>
    actor = 'rhettinger'
    assignee = 'rhettinger'
    closed = True
    closed_date = <Date 2009-01-29.00:11:02.698>
    closer = 'rhettinger'
    components = ['Library (Lib)']
    creation = <Date 2009-01-12.11:10:08.012>
    creator = 'jrosiek'
    dependencies = []
    files = ['12698', '12700', '12701']
    hgrepos = []
    issue_num = 4920
    keywords = ['patch']
    message_count = 3.0
    messages = ['79662', '79666', '80730']
    nosy_count = 2.0
    nosy_names = ['rhettinger', 'jrosiek']
    pr_nums = []
    priority = 'high'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue4920'
    versions = ['Python 2.6', 'Python 2.7']

    Metadata

    Metadata

    Assignees

    Labels

    stdlibStandard 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