Message145606
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 |
|
Date |
User |
Action |
Args |
2011-10-15 20:28:45 | pitrou | set | recipients:
+ pitrou, ncoghlan |
2011-10-15 20:28:45 | pitrou | set | messageid: <1318710525.2.0.403840698833.issue13187@psf.upfronthosting.co.za> |
2011-10-15 20:28:44 | pitrou | link | issue13187 messages |
2011-10-15 20:28:44 | pitrou | create | |
|