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 Yury.Selivanov, barry, brett.cannon, eric.smith, eric.snow, jaraco
Date 2012-04-25.14:51:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1335365515.37.0.801688631954.issue14660@psf.upfronthosting.co.za>
In-reply-to
Content
What do you mean the loader is only needed to set __loader__? You need the loader to create the module (or find it in sys.modules to reload), and set all the attributes properly. If you do this then reloading namespace modules will become a special case compared to other loaders as imp.reload() calls module.__loader__.load_module().

This also prevents the creation of an importlib.find_module() which would return the loader to replace imp.find_module() since you now split the API.

I realize the finder/loader dichotomy seems superfluous (and most of the time it is), but it has already been heavily exposed and relied on and deviating from it for namespace modules runs the risk of hurting introspection.
History
Date User Action Args
2012-04-25 14:51:55brett.cannonsetrecipients: + brett.cannon, barry, jaraco, eric.smith, Yury.Selivanov, eric.snow
2012-04-25 14:51:55brett.cannonsetmessageid: <1335365515.37.0.801688631954.issue14660@psf.upfronthosting.co.za>
2012-04-25 14:51:54brett.cannonlinkissue14660 messages
2012-04-25 14:51:54brett.cannoncreate