import a modified module

Ken Godee ken at perfect-image.com
Thu Mar 25 22:38:00 EST 2004


myang wrote:
> I am revising a python module, and try it in python shell. Each time after
> the module is modified, how can I import the new module? I remember there is
> an "import" like staff to do it, but dont know its name clearly. I was not
> able to google out it, and the huge bulk of python documentation is
> fearsome. :(
> 
> Regards,
> Yang
> 
> 

If I understand the question....

you want to reload the modified module without
exiting the interpiter?

if so try

reload(mymod)




More information about the Python-list mailing list