[issue7732] imp.find_module crashes Python if there exists a directory named "__init__.py"

Florent Xicluna report at bugs.python.org
Thu Jan 28 21:30:54 CET 2010


Florent Xicluna <laxyf at yahoo.fr> added the comment:

AFAICT, in this case, if PyString_FromString gives NULL, then (o_name == NULL) and the function returns without calling "fill_file_fields".
Hence, the fp is not opened.

Do you suggest something else?

----------

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


More information about the Python-bugs-list mailing list