[issue13046] imp.find_module() should not find unimportable modules

Ezio Melotti report at bugs.python.org
Sun Sep 25 21:35:25 CEST 2011


Ezio Melotti <ezio.melotti at gmail.com> added the comment:

I'm not sure they should be disallowed.  We have ways to set variables and attributes with "invalid" names (like '.something') too.  OTOH __import__ fails to import the .something due to the special meaning of the dot, but it imports things like foo-bar.py just fine.
Also I'm assuming that with "unimportable" you just mean "with a name that is not a valid identifier" and not other modules that can't be imported for other reasons.

----------
nosy: +brett.cannon, ezio.melotti, ncoghlan
type:  -> behavior

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


More information about the Python-bugs-list mailing list