can modules be dynamically reloaded

S

Steve

Can python modules be reloaded.

For example you import a module, programatically edit it, then have the
file reload the module?

Does anyone have any ideas about this?
Steve
 
B

Benjamin Niemann

Steve said:
Can python modules be reloaded.

Yes:

import mymod
....
reload(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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
474,270
Messages
2,571,352
Members
48,034
Latest member
BettinaArn

Latest Threads

Top