import question

Steven D. Majewski sdm7g at Virginia.EDU
Tue Oct 16 11:49:49 EDT 2001


On Tue, 16 Oct 2001, Steven D. Majewski wrote:
> 
> import foo	# get foo into namespace
> reload foo	# reload it
> from foo import *   # until you do this, the names in this namespace 
> 		    # still point to the names in the old foo module.

Oops! Should be:

 reload(foo) 

'reload' is a function, 'import' is a statement.

-- Steve






More information about the Python-list mailing list