Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.

Prevent "dictionary changed size during iteration" error #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ss23
Copy link

@ss23 ss23 commented Nov 15, 2016

In Python 3, this will return a generator. When the subsequent code modifies the list being operated on, it will trigger a RuntimeError.
By using list() we force a copy of the list to be made.

In Python 3, this will return a generator. When the subsequent code
modifies the list being operated on, it will trigger a RuntimeError.
By using `list()` we force a copy of the list to be made.
@ss23 ss23 mentioned this pull request May 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant