By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,485 Members | 1,061 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,485 IT Pros & Developers. It's quick & easy.

reloading modules

P: n/a
Assume a main python file that does the following:

from lib_mod import performAction
def main():
return performAction("myFile")

Now, if I modify lib_mod.py and just try to reload main.py, lib_mod is not
updated. I have searched online and came upon a few tinkers but nothing
that seemed to be blessed by python.org. Is there a feature or an
official modification that I'm missing?

Otherwise, I'll probably always do a try on a reload at the top of main.py
but that does not seem too robust to me.

I am using 2.3.2 on CLI.

Thanks,
Joe
Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.