Skip to content

use shallow copy of set for iteration#1

Open
deepsource-at-deepsourcesecurity[bot] wants to merge 1 commit into
masterfrom
deepsource-autofix-8e1a8709
Open

use shallow copy of set for iteration#1
deepsource-at-deepsourcesecurity[bot] wants to merge 1 commit into
masterfrom
deepsource-autofix-8e1a8709

Conversation

@deepsource-at-deepsourcesecurity
Copy link
Copy Markdown

Sets are represented by a hash table and adding or removing items while iterating over it will alter the iteration order.
This will cause a RuntimeError.

Sets are represented by a hash table and adding or removing items while iterating over it will alter the iteration order.
This will cause a `RuntimeError`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants