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

Ronan Lamy report at bugs.python.org
Wed May 30 20:13:52 CEST 2012


Ronan Lamy <ronan.lamy at gmail.com> added the comment:

Reverting to the previous behaviour, then? OK.

As I understand it, the issue comes from a DRY violation: both FileFinder.find_loader() and _LoaderBasics.is_package() have their own notion of what is a package and they disagree. Since the finder needs to know what is a package, I think that the loader should be told whether it's a package or not instead of trying to guess.

----------

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


More information about the Python-bugs-list mailing list