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 mforbes
Recipients brett.cannon, eric.snow, mforbes, ned.deily
Date 2018-07-16.00:32:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1531701138.27.0.56676864532.issue21617@psf.upfronthosting.co.za>
In-reply-to
Content
It seems that a reasonable workaround (if you generate your own `spec`) is to call `spec.loader.exec_module(mod)`.  This seems to reload the module into the same namespace. (I was afraid that it might replace the namespace hence the desire to use `importlib.reload()` explicitly.)
History
Date User Action Args
2018-07-16 00:32:18mforbessetrecipients: + mforbes, brett.cannon, ned.deily, eric.snow
2018-07-16 00:32:18mforbessetmessageid: <1531701138.27.0.56676864532.issue21617@psf.upfronthosting.co.za>
2018-07-16 00:32:18mforbeslinkissue21617 messages
2018-07-16 00:32:17mforbescreate