Should I use
from foo import bar
OR
import foo.bar as bar
when importing a module and an
The only thing I can see for the second option is that you will need as many lines as things you want to import. For example :
import foo.bar as bar import foo.tar as tar import foo.zar as zar
Instead of simply doing :
from foo import bar, tar, zar