Monday, December 6, 2010

Link: Importing Python Modules

I ran into this blog post on importing Python Modules a couple of weeks ago and it help solidify my understanding of how import and from..import (and __import__()) operate in Python and what they actually do.

The PEP 0008 Python Style Guide does not state a preference for import style but this blog post is fairly blunt in recommending import (and its lower amount of name pollution) over other approaches when possible.

A good, clear read. Thanks Fredrik!

No comments:

Post a Comment