Message191660
| 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:11 | brett.cannon | set | recipients:
+ brett.cannon, barry, eric.smith, Arfrever, sbt |
| 2013年06月22日 19:12:11 | brett.cannon | set | messageid: <1371928331.93.0.744568334252.issue17621@psf.upfronthosting.co.za> |
| 2013年06月22日 19:12:11 | brett.cannon | link | issue17621 messages |
| 2013年06月22日 19:12:11 | brett.cannon | create |
|