Skip to content

Output of "Modifying a dictionary while iterating over it" is not correct for all Python versions #53

Closed
@icemac

Description

@icemac

The result shown in Modifying a dictionary while iterating over it is correct for CPython 2.4 up to 3.5.

On Python 3.6 it prints

0
1
2
3
4

On PyPy 2.7 and PyPy 3 it prints

0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions