can modules be dynamically reloaded

Benjamin Niemann pink at
Wed Nov 16 22:20:45 CET 2005

Steve wrote:

> Can python modules be reloaded.


import mymod

But this will not always work as expected (what someone would expect who
does not really understand how it works...). Read the documentation on

> For example you import a module, programatically edit it, then have the
> file reload the module?
> Does anyone have any ideas about this?
> Steve

Benjamin Niemann
Email: pink at odahoda dot de

More information about the Python-list mailing list