how can I reload 'from *' ?
Michael Hudson
mwh21 at cam.ac.uk
Fri May 26 10:40:35 EDT 2000
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.
--
40. There are two ways to write error-free programs; only the third
one works.
-- Alan Perlis, http://www.cs.yale.edu/homes/perlis-alan/quotes.html
More information about the Python-list
mailing list