[issue14660] Implement PEP 420: Implicit Namespace Packages
Eric V. Smith
report at bugs.python.org
Wed Apr 25 14:47:41 CEST 2012
Eric V. Smith <eric at trueblade.com> added the comment:
I'd really prefer something like:
return load_ns_module(fullname, namespace_path)
The point being that load_module() as defined in PEP 302 will never be called on NamespaceLoader. The loader only needs to exist to set module.__loader__, and load_module() would never be called from there.
So we could pass in a callable named load_ns_module to PathFinder.
Then NamespaceLoader's load_module function could be named load_ns_module, made a class or static method.
I think I'll experiment with this.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14660>
_______________________________________
More information about the Python-bugs-list
mailing list