Message376770
This is not a bug, it is working as designed. Importing takes the module from the cache. You can either delete the module from the cache:
del sys.modules['modulename']
import modulename # reloads from the module file
or possibly simpler, use reload:
importlib.reload(modulename) |
|
Date |
User |
Action |
Args |
2020-09-12 04:14:28 | steven.daprano | set | recipients:
+ steven.daprano, paul.moore, tim.golden, zach.ware, steve.dower, prasechen |
2020-09-12 04:14:28 | steven.daprano | set | messageid: <1599884068.48.0.604814123761.issue41770@roundup.psfhosted.org> |
2020-09-12 04:14:28 | steven.daprano | link | issue41770 messages |
2020-09-12 04:14:28 | steven.daprano | create | |
|