[issue8398] Modules with a dot in the filename don't load
Ezio Melotti
report at bugs.python.org
Wed Apr 14 15:26:58 CEST 2010
Ezio Melotti <ezio.melotti at gmail.com> added the comment:
If you do "import GetMy.com_MOD" Python will search for the module named "com_MOD" in the package "GetMy".
The name of the module should be a valid Python identifier -- possibly all lowercase (see PEP8). GetMy.com_MOD is not a valid identifier, so you wouldn't even be able to do GetMy.com_MOD.some_func() once you imported it.
See http://docs.python.org/reference/simple_stmts.html#the-import-statement for more information.
----------
nosy: +ezio.melotti
resolution: -> invalid
stage: -> committed/rejected
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8398>
_______________________________________
More information about the Python-bugs-list
mailing list