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 brett.cannon
Recipients barry, brett.cannon, eric.smith, eric.snow, ncoghlan
Date 2013-05-27.13:59:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1369663183.34.0.953229733937.issue18070@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2013-05-27 13:59:43brett.cannonsetrecipients: + brett.cannon, barry, ncoghlan, eric.smith, eric.snow
2013-05-27 13:59:43brett.cannonsetmessageid: <1369663183.34.0.953229733937.issue18070@psf.upfronthosting.co.za>
2013-05-27 13:59:43brett.cannonlinkissue18070 messages
2013-05-27 13:59:42brett.cannoncreate