This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients brett.cannon, eric.snow, ncoghlan, serhiy.storchaka, stefan.mosoi
Date 2021-01-27.13:37:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1611754673.75.0.852315161077.issue43037@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-01-27 13:37:53serhiy.storchakasetrecipients: + serhiy.storchaka, brett.cannon, ncoghlan, eric.snow, stefan.mosoi
2021-01-27 13:37:53serhiy.storchakasetmessageid: <1611754673.75.0.852315161077.issue43037@roundup.psfhosted.org>
2021-01-27 13:37:53serhiy.storchakalinkissue43037 messages
2021-01-27 13:37:53serhiy.storchakacreate