Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix bug updating WeakKeyDictionary during iteration #1698

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

Merged
merged 1 commit into from
Feb 17, 2013

Conversation

mdboom
Copy link
Member

@mdboom mdboom commented Jan 23, 2013

This is an attempt to fix the bug reported in the mailing list thread "BUG: RuntimeError: dictionary changed size during iteration".

…ailing list thread "BUG: RuntimeError: dictionary changed size during iteration"
@pelson
Copy link
Member

pelson commented Jan 24, 2013

Does this fix the problem?

View changed from a copy to a view between python2.7 and python3.2. Maybe 2to3 handles this magic?

http://docs.python.org/2.7/library/stdtypes.html?highlight=dict#dict.values
http://docs.python.org/3.2/library/stdtypes.html?highlight=dict#dict.values

@mdboom
Copy link
Member Author

mdboom commented Jan 24, 2013

Yes -- 2to3 converts dict.values() into list(dict.values())

efiring added a commit that referenced this pull request Feb 17, 2013
Fix bug updating WeakKeyDictionary during iteration
@efiring efiring merged commit 610b182 into matplotlib:v1.2.x Feb 17, 2013
@mdboom mdboom deleted the iteritems_bug branch August 7, 2014 13:52
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.

3 participants