[Python-Dev] Implementing PEP 382, Namespace Packages (original) (raw)
P.J. Eby pje at telecommunity.com
Mon May 31 16:51:45 CEST 2010
- Previous message: [Python-Dev] Implementing PEP 382, Namespace Packages
- Next message: [Python-Dev] tp_dealloc
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.loadmodule(fullname) > if not hasattr(module, 'path'): > # found, but not a package > return module > > pc = getpthcontents(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.
- Previous message: [Python-Dev] Implementing PEP 382, Namespace Packages
- Next message: [Python-Dev] tp_dealloc
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]