[issue22292] pickle whichmodule RuntimeError

2014-10-06 Thread Attilio Di Nisio
Attilio Di Nisio added the comment: Duplicate of #21905 Fixed in https://hg.python.org/cpython/rev/86ba3bdfac15 -- resolution: - duplicate status: open - closed versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org

[issue22292] pickle whichmodule RuntimeError

2014-10-06 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- superseder: - RuntimeError in pickle.whichmodule when sys.modules if mutated ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22292 ___

[issue22292] pickle whichmodule RuntimeError

2014-08-28 Thread Attilio Di Nisio
Attilio Di Nisio added the comment: A simple patch to freeze the list of sys.modules. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22292 ___

[issue22292] pickle whichmodule RuntimeError

2014-08-28 Thread STINNER Victor
STINNER Victor added the comment: A simple patch to freeze the list of sys.modules. Which patch? -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22292 ___

[issue22292] pickle whichmodule RuntimeError

2014-08-28 Thread Attilio Di Nisio
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:

[issue22292] pickle whichmodule RuntimeError

2014-08-28 Thread Attilio Di Nisio
Changes by Attilio Di Nisio attilio.dini...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file36499/pickle.py.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22292 ___

[issue22292] pickle whichmodule RuntimeError

2014-08-27 Thread attilio.dinisio
New submission from attilio.dinisio: = Error message = pickle.dumps and pickle.dump generate the following error: File /usr/lib/python3.4/pickle.py, line 283, in whichmodule for module_name, module in sys.modules.items(): RuntimeError: dictionary changed size during iteration = Test