[issue23447] Relative imports with __all__ attribute

Brett Cannon report at bugs.python.org
Thu Feb 12 16:30:19 CET 2015


Brett Cannon added the comment:

If you put a print call after your `from . import *` call you will notice it never gets executed. Basically import is still in the middle of finishing imports when that import * is reached, including setting the module attributes on the package. Basically you have a circular import.

----------
nosy: +brett.cannon
resolution:  -> not a bug
status: open -> closed

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


More information about the Python-bugs-list mailing list