how to rerun a function after edit it?

wang frank fw3 at hotmail.co.jp
Wed Oct 10 14:51:58 EDT 2007


Hi,
 
I am looking for a way to rerun functions after I changed them. This is very critical during the development stage. Currently I have to quit python and restart the python to run the functions. I found the reload function. But it needs the module name. In my case, I import the module using from filename import *. I do not know how to reload it.
 
Using IDLE, it seems that everytime when I click F5, it reloads the function and execute them. I want to find out how to do it without IDLE.
 
For the python script, I use execfile('filename.py') to execute it. Is it possible by directly typing filename to run it? 
 
 
Thanks
 
Frank
_________________________________________________________________
今話題になってる出来事や有名人をランキングで毎週発表「MSN 気になる言葉」
http://keyword.jp.msn.com/default.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20071010/eb74e517/attachment.html>


More information about the Python-list mailing list