Message190139
importlib.util.module_for_loader (as well as set_package and set_loader) only set those attributes either when they are not already set or when the module is new. I realized this is a problem as it means a reload won't work the way one might expect.
I want to at least change module_for_loader since I suspect that is in wider use, but probably all three decorators to unconditionally set their respective attributes so reloads operate as expected. Unfortunately that is backwards-incompatible, albeit for probably a rare case if anyone actually cares.
Anyone see a reason why doing this is a bad idea and it shouldn't be done? |
|
Date |
User |
Action |
Args |
2013-05-27 13:59:43 | brett.cannon | set | recipients:
+ brett.cannon, barry, ncoghlan, eric.smith, eric.snow |
2013-05-27 13:59:43 | brett.cannon | set | messageid: <1369663183.34.0.953229733937.issue18070@psf.upfronthosting.co.za> |
2013-05-27 13:59:43 | brett.cannon | link | issue18070 messages |
2013-05-27 13:59:42 | brett.cannon | create | |
|