[issue7732] imp.find_module crashes Python if there exists a directory named "__init__.py"
STINNER Victor
report at bugs.python.org
Mon Jun 20 15:35:23 CEST 2011
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
import_directory-py3k.patch: find_module_path_list() ignores silently directories matching requested filename pattern (like module_name + ".py"). I don't think that it is useful to emit a warning (or raise an error) here, the code checks for various file extensions, not only .pyc: .so, .pyd, ...
----------
Added file: http://bugs.python.org/file22415/import_directory-py3k.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7732>
_______________________________________
More information about the Python-bugs-list
mailing list