Message237875
inal comment. It seems that one can generally avoid a lot of nastiness if importlib.reload() is used instead. For example:
>>> mod = sys.modules[spec.name] = module_from_spec(spec)
>>> importlib.reload(mod)
This works for both source and Extension modules and completely avoids the need to worry about the exec_module()/load_module() warts. Wouldn't say it's an obvious approach though ;-). |
|
Date |
User |
Action |
Args |
2015-03-11 15:28:09 | dabeaz | set | recipients:
+ dabeaz, brett.cannon, ncoghlan, eric.snow |
2015-03-11 15:28:09 | dabeaz | set | messageid: <1426087689.15.0.984036648795.issue23642@psf.upfronthosting.co.za> |
2015-03-11 15:28:09 | dabeaz | link | issue23642 messages |
2015-03-11 15:28:09 | dabeaz | create | |
|