Clearing The Interactive Python Environment
Steven D. Majewski
sdm7g at Virginia.EDU
Wed Aug 8 15:49:27 EDT 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 'my_module.xxx' will be different objects.
-- Steve M.
More information about the Python-list
mailing list