Get rid of local imports in boto.route53.connection #679

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
Contributor

ryansb commented Apr 2, 2012

Local imports are generally less good. Let's get rid of those.

Owner

garnaat commented Apr 30, 2012

Should these be changed to relative imports?

Contributor

ryansb commented Apr 30, 2012

I used the wrong terminology when making this commit. I meant get rid of relative imports (import exception), and change them to absolute (boto.route53.exception).

Switching to absolute imports prevents you from accidentally shadowing some builtin or other module, which becomes more and more likely as more modules are written and included into the standard library.

See: http://www.python.org/dev/peps/pep-0328/#rationale-for-absolute-imports

@ryansb ryansb closed this May 8, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment