Nick Coghlan added the comment:

Issue 992389 is the previous incarnation of this bug report, while issue 17636 
made the change so that from imports will resolve in some situations where this 
error will occur.

That fact that "from x.y.b import foo" may now resolve in cases where "import 
x.y.b; foo = x.y.b.foo" will fail should indeed be covered in the documentation.

If PEP 8 were to be updated at all, it should just say "Don't use circular 
imports. If you can't refactor your design to move the common components out to 
a shared helper module, then move everything into the same module - the 
irremovable circular dependency indicates the code is too tightly coupled to 
live in different modules".

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25294>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to