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 Arfrever, barry, brett.cannon, eric.smith, sbt
Date 2013-06-22.19:12:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1371928331.93.0.744568334252.issue17621@psf.upfronthosting.co.za>
In-reply-to
Content
So the approaches I have been using make a loader lazy, so what you have to change in terms of sys.meta_path, sys.path_hooks, etc. would very from loader to loader.

I have realized one tricky thing with all of this is that importlib itself inspects modules post-import to verify that __loader__ and __package__ have been set. That typically triggers an immediate load and so might need to be special-cased.
History
Date User Action Args
2013-06-22 19:12:11brett.cannonsetrecipients: + brett.cannon, barry, eric.smith, Arfrever, sbt
2013-06-22 19:12:11brett.cannonsetmessageid: <1371928331.93.0.744568334252.issue17621@psf.upfronthosting.co.za>
2013-06-22 19:12:11brett.cannonlinkissue17621 messages
2013-06-22 19:12:11brett.cannoncreate