[Tutor] Question on import foobar vs from foobar import *

2010-01-08 Thread Rob Cherry
Still trying to get the hang of some python intricacies, but this one has come up a few times. Beyond the obvious syntactic niceties what is the difference between importing with and without the from syntax? Its nice for example to do this - from socket import * googleip =

Re: [Tutor] Question on import foobar vs from foobar import *

2010-01-08 Thread Rob Cherry
Extending on this advice somewhat - is it *ever* correct to import foobar. There are countless examples of import os,sys etc,etc. Strictly speaking should we always be using from to only get what we know we need? Thanks, Rob ___ Tutor maillist -