[Python-Dev] cpython: Issue 19944: Fix importlib.find_spec() so it imports parents as needed.
Eric Snow
ericsnowcurrently at gmail.com
Sun Jan 26 02:57:31 CET 2014
On Sat, Jan 25, 2014 at 6:28 PM, Antoine Pitrou <solipsis at pitrou.net> wrote:
> Is there a reason to have separate "importlib" (toplevel) and
> "importlib.util" namespaces?
As to why they are separate, you'll need to ask Brett. I believe it's
meant to keep the top namespace as small as possible.
Regarding this changeset, it depended on
importlib.util.resolve_name(), so moving find_spec() made sense. We
discussed it briefly in issue #19944 and everyone there agreed it was
fine.
>
> (the doc says "This module contains the various objects that help in
> the construction of an importer", which doesn't sound related to
> find_spec())
We should fix that, :)
-eric
More information about the Python-Dev
mailing list