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.

作者 brett.cannon
收信人 brett.cannon
日期 2012-04-17.15:58:04
SpamBayes Score -1.0
Marked as misclassified
Message-id <1334678285.31.0.589963804213.issue14605@psf.upfronthosting.co.za>
In-reply-to
内容
There should no longer be any implicit part of import when there doesn't have to be. To make import fully explicit, some things need to happen (in context to importlib):

* Expose FileLoader
* Expose SourceFileLoader
* Expose PathFinder
* Expose the extension loader
* Expose the default path hook
* Explicitly set sys.meta_path with PathFinder
* Explicitly set sys.path_hooks with the default path hook and zipimport
* Make sys.path_importer_cache view None as no finder discovered
* Insert None into sys.path_importer_cache instead of NullImporter

I am not exposing SourcelessFileLoader because importlib publicly tries to discourage the shipping of .pyc files w/o their corresponding source files. Otherwise all objects as used by importlib for performing imports will become public.
历史
日期 用户 动作 参数
2012-04-17 15:58:05brett.cannon修改recipients: + brett.cannon
2012-04-17 15:58:05brett.cannon修改messageid: <1334678285.31.0.589963804213.issue14605@psf.upfronthosting.co.za>
2012-04-17 15:58:04brett.cannon链接issue14605 messages
2012-04-17 15:58:04brett.cannon创建