RE: ImportError: cannot import name dns

2011-09-16 Thread Prasad, Ramit
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

Re: ImportError: cannot import name dns

2011-09-14 Thread Jack Bates
> 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

RE: ImportError: cannot import name dns

2011-09-13 Thread Prasad, Ramit
-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

ImportError: cannot import name dns

2011-09-13 Thread Jack Bates
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