[issue14938] 'import my_pkg.__init__' creates duplicate modules
Ronan Lamy
report at bugs.python.org
Thu May 31 21:46:21 CEST 2012
Ronan Lamy <ronan.lamy at gmail.com> added the comment:
That would force the Loaders to know how to convert a module name into a file path, which isn't the case now since FileLoader.get_filename() is just a shim that returns self.path. So I'd rather add an optional argument to FileLoader. Actually, I feel that the clean solution would be to have packages be a separate Loader class, but that would be a significant change...
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14938>
_______________________________________
More information about the Python-bugs-list
mailing list