[issue18145] Strange behavior when importing internal modules in the __init__.py of a submodule

Brett Cannon report at bugs.python.org
Wed Jun 5 23:39:29 CEST 2013


Brett Cannon added the comment:

It can't. The AttributeError is in the executing module code, not import itself so there is no reasonable way to tell that the failure was because of a circular loop in the import and not simply because you tried to get at an attribute that doesn't exist for some other reason.

----------
resolution:  -> invalid
status: open -> closed

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


More information about the Python-bugs-list mailing list