Python Imports¶
Following is from David Beazley's talk.
import foo
andfrom foo import bar
both execute the entirefoo
module. The latter is NOT a "smart" import in any way-
Imported functions record their definition environment
-
__init__.py
can be used to stitch multiple modules together.