STINNER Victor <victor.stin...@gmail.com> added the comment:

Attached PR 3871 fixes the side effect in test_imp, but I'm not sure that it's 
the best fix. Maybe load_source() should use a "transaction" to restore 
attributes on failure?

load_source() seems to be used imp.reload() for example. Do you expect this 
function to restore the imported module to its original state on failure?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue31676>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to