[issue14938] 'import my_pkg.__init__' creates duplicate modules

Brett Cannon report at bugs.python.org
Fri Jun 1 22:06:53 CEST 2012


Brett Cannon <brett at python.org> added the comment:

I have yet to see anyone use a URL loader in serious code beyond people just using it as an example. What I do see is lots of custom zipfile importers and thus for the majority if people this will continue to make sense. And even with a URL loader, get_filename would return a URL who probably has something like http://example.com/pkg/__init__.py which would still work as expected. If someone chooses to break from expectations they can just overload is_package().

----------
assignee:  -> brett.cannon
resolution: wont fix -> 
stage:  -> test needed
status: closed -> open

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14938>
_______________________________________


More information about the Python-bugs-list mailing list