New submission from Antoine Pitrou <pit...@free.fr>:

This is, to say the least, annoying.

$ mkdir mypackage
$ touch mypackage/__init__.py
$ echo "from . import b" > mypackage/a.py
$ echo "from . import a" > mypackage/b.py
$ ./python -c "import mypackage.a"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "mypackage/a.py", line 1, in <module>
    from . import b
  File "mypackage/b.py", line 1, in <module>
    from . import a
ImportError: cannot import name a

----------
components: Interpreter Core
messages: 145606
nosy: ncoghlan, pitrou
priority: normal
severity: normal
status: open
title: relative imports don't work when circular
type: behavior
versions: Python 3.2, Python 3.3

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

Reply via email to