"import foo" and "from foo import bar"
Tom Loredo
loredo at spacenet.tn.cornell.edu
Tue Jun 13 18:19:57 EDT 2000
Hi-
An additional difference, relevant if you are working in IDLE or
interactively and using names you have imported from a module
you may change (i.e., you are debugging it), is that if you
use
import me
then when you edit me.py, you can get the updated contents by using
reload(me)
I don't know of any similarly simple reload method if you are
explicitly loading specific names from me.py.
Peace,
Tom Loredo
More information about the Python-list
mailing list