This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients ncoghlan, pitrou
Date 2011-10-15.20:28:44
SpamBayes Score 1.7539222e-07
Marked as misclassified No
Message-id <1318710525.2.0.403840698833.issue13187@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2011-10-15 20:28:45pitrousetrecipients: + pitrou, ncoghlan
2011-10-15 20:28:45pitrousetmessageid: <1318710525.2.0.403840698833.issue13187@psf.upfronthosting.co.za>
2011-10-15 20:28:44pitroulinkissue13187 messages
2011-10-15 20:28:44pitroucreate