how can I reload 'from *' ?

Mike Cat noemail at nowhere.hades
Mon May 29 03:30:49 EDT 2000


mwh21 at cam.ac.uk (Michael Hudson) wrote in 
<m3og5tjrx8.fsf at atrus.jesus.cam.ac.uk>:

>noemail at nowhere.hades (Mike Cat) writes:
>
>> Hi!
>> 
>> How can I reload things imported with 'from HUGO import *' ?
>
>import HUGO
>reload(HUGO)
>from HUGO import *
>
>or
>
>reload(sys.modules["HUGO"]); from HUGO import *
>
>(another reason not to use "import *"...)
>
>Cheers,
>M.
>

That works! Thank you!

Regards,
Mike



More information about the Python-list mailing list