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

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