Clearing The Interactive Python Environment

Alexandre Fayolle alf at pisces.logilab.fr
Wed Aug 8 11:40:53 EDT 2001


On Wed, 08 Aug 2001 15:33:47 GMT, chajadan <me at charliedaniels.com-1.net> wrote:
>say for example I change a module and want to reload it, but imported
>it thus:
>
>from my_module import *
>
>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)

Alexandre Fayolle
-- 
LOGILAB, Paris (France).
http://www.logilab.com   http://www.logilab.fr  http://www.logilab.org
Narval, the first software agent available as free software (GPL).



More information about the Python-list mailing list