Possible Duplicate:
python import question
What is the difference between importing a Python file from a folder i.e:
from coredump.analyzer.utils import netAnalyzer
and importing ‘*’ of the same file i.e:
from coredump.analyzer.utils.netAnalyzer import *
The first import line imports the module
netAnalyzer. That means you have to call functions as follows:netAnalyzer.myfunction(...).The second import line imports the functions into the namespace: this means you can call
myfunction(...)without mentioning the module name.