sad, Ramit
Cc: python-list@python.org
Subject: Re: ImportError: cannot import name dns
> It is a circular dependency. Dns will try to import udp which will in turn
> import dns (again) in an endless cycle; instead an ImportError is raised.
>
> Circular dependency is a Bad Thing.
Ac
> It is a circular dependency. Dns will try to import udp which will in turn
> import dns (again) in an endless cycle; instead an ImportError is raised.
>
> Circular dependency is a Bad Thing.
According to this documentation:
http://docs.python.org/reference/simple_stmts.html#grammar-token-impor
-Original Message-
From: python-list-bounces+ramit.prasad=jpmorgan@python.org
[mailto:python-list-bounces+ramit.prasad=jpmorgan@python.org] On Behalf Of
Jack Bates
Sent: Tuesday, September 13, 2011 5:28 PM
To: python-list@python.org
Subject: ImportError: cannot import name dns
import dns
ImportError: cannot import name dns
$
I reproduce this error with the following four files and five lines:
== foo/dns.py ==
from foo import udp
== foo/udp.py ==
from foo import dns
== foo/__init__.py ==
(empty)
== test ==
#!/usr/bin/env python
from foo import dns
--
http://ma