Message385773
It works as documented. reload() argument must be a module. If you have only module name, sys.modules is a mapping of module names to modules. It is trivial to combine two things in one line.
And why do you want to reload a module by name (without having a reference to module itself)? In general, reload() should be used with caution, it is easy to misuse it. |
|
Date |
User |
Action |
Args |
2021-01-27 13:37:53 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, brett.cannon, ncoghlan, eric.snow, stefan.mosoi |
2021-01-27 13:37:53 | serhiy.storchaka | set | messageid: <1611754673.75.0.852315161077.issue43037@roundup.psfhosted.org> |
2021-01-27 13:37:53 | serhiy.storchaka | link | issue43037 messages |
2021-01-27 13:37:53 | serhiy.storchaka | create | |
|