Clearing The Interactive Python Environment

Steven D. Majewski sdm7g at Virginia.EDU
Wed Aug 8 21:49:27 CEST 2001

On Wed, 8 Aug 2001, Alexandre Fayolle wrote:

> >How do I reload the * from my_module?
> import my_module
> reload(mymodule)
> from my_module import *
> (the last step may not be required, I've never tested without it)

Yes -- it's necessary.
Otherwise, you will access the earlier set of bindings and 
'xxx' and '' will be different objects.

-- Steve M.

More information about the Python-list mailing list