[issue24492] using custom objects as modules: AttributeErrors new in 3.5

Armin Rigo report at bugs.python.org
Wed Jun 24 10:29:24 CEST 2015


Armin Rigo added the comment:

I'd guess so: if the PyObject_GetAttrId() fails, then ignore the rest of the code that was added in https://hg.python.org/cpython/rev/fded07a2d616 and jump straight to ``PyErr_Format(PyExc_ImportError, ...)``.

----------

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


More information about the Python-bugs-list mailing list