Attilio Di Nisio added the comment: diff -r fb3aee1cff59 Lib/pickle.py --- a/Lib/pickle.py Wed Aug 27 09:41:05 2014 -0700 +++ b/Lib/pickle.py Thu Aug 28 10:59:37 2014 +0200 @@ -280,7 +280,7 @@ module_name = getattr(obj, '__module__', None) if module_name is not None: return module_name - for module_name, module in sys.modules.items(): + for module_name, module in list(sys.modules.items()): if module_name == '__main__' or module is None: continue try:
---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22292> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com