matplotlib/matplotlib — pull request #1698 by mdboom (2013-01-23 19:41:16+00:00)
Title: Fix bug updating WeakKeyDictionary during iteration

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