Brett Cannon <br...@python.org> added the comment:

Yeah, having to pass in the name to load_module is silly. I'm seriously 
considering making it optional for some loaders when the name was passed in to 
the constructor.

One thing I would like to see is that PathFinder take a new, keyword-only 
argument of 'namespace_loader' or something that takes an object which is 
called with the module name and the list of paths to use for __path__ (and thus 
__path__[0] becomes __file__). That way it can be controlled by users if 
desired. I'm also fine with it having a default value of NamespaceLoader to 
start since I don't see people needing to comprehend what they are allowing in 
this case as I do for general file loaders.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14660>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to