R. David Murray added the comment:

Hmm.  What if we made import_fresh_module a context manager, so that the 
restore of the original module in sys.modules only happened at the end of the 
context?

----------

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

Reply via email to