[issue14938] 'import my_pkg.__init__' creates duplicate modules
Ronan Lamy
report at bugs.python.org
Tue May 29 22:37:42 CEST 2012
Ronan Lamy <ronan.lamy at gmail.com> added the comment:
Well, I can try. I have trouble wrapping my head around all the finders and loaders, but I'm slowly understanding what does what.
What I don't know is what the expected behaviour is. Should my_pkg.__init__ be allowed to exist as a separate module (that's backwards-compatible but seems wrong)? Can it exist as a synonym of my_pkg? Should the import attempt raise an ImportError?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14938>
_______________________________________
More information about the Python-bugs-list
mailing list