[issue15715] __import__ now raises with non-existing items in fromlist in 3.3
Eric Snow
report at bugs.python.org
Fri Aug 17 08:01:43 CEST 2012
Eric Snow added the comment:
The following seems to indicate that an ImportError should be raised as expected. I'm guessing that somewhere along the line the exception gets silently eaten.
------------------
(3.2) Python/import.c:ensure_fromlist() [1]
submod = import_submodule(mod, subname, buf);
Py_DECREF(item8);
Py_XDECREF(submod);
if (submod == NULL) {
Py_DECREF(item);
return 0;
}
[1] http://hg.python.org/cpython/file/3.2/Python/import.c#l2875
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15715>
_______________________________________
More information about the Python-bugs-list
mailing list