Re: [Python-Dev] Implementing PEP 382, Namespace Packages
31 May
2010
31 May
'10
10:51 a.m.
At 09:24 AM 5/31/2010 +0200, Martin v. Löwis wrote:
Is this really how it works today? Shouldn't it abort here if there is an ImportError?
Oops. You're right - I was confusing find_module with the path_hooks protoocol.
else: # errors here should propagate module = loader.load_module(fullname) if not hasattr(module, '__path__'): # found, but not a package return module
pc = get_pth_contents(importer)
Assuming we always get here with a loader, I'd rather call this on the loader.
We don't, unless the finder natively supports PEP 382.
5241
Age (days ago)
5241
Last active (days ago)
0 comments
1 participants
participants (1)
-
P.J. Eby