Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dict change during iteration #90

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

Conversation

peci1
Copy link
Contributor

@peci1 peci1 commented Nov 12, 2024

Without this PR, I got an exception from cpplint saying that the dict iterated over has been changed during iteration.

The comment above my change says we operate on a copy, but it's not actually creating a copy (I think it gets a generator). So I instead forced the copy.

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.

1 participant