Re: Is automatic reload of a module available in Python?

2010-02-18 Thread R (Chandra) Chandrasekhar
Arnaud Delobelle wrote: Here is a very simple way to improve what you do, which won't require you to change the way you work or to learn a new paradigm: Instead of testing your functions interactively, put your testing code in a file, e.g. 'program_tests.py'. Your can then type python

Re: Is automatic reload of a module available in Python?

2010-02-18 Thread Simon Brunning
2010/2/17 Arnaud Delobelle arno...@googlemail.com: I know some people will point at more 'pro' ways of testing but this has the merit of being very straightforward.  Then when you move on to more sophisticated techniques, I think you will understand better the motivations behind them. Oh, I

Is automatic reload of a module available in Python?

2010-02-17 Thread R (Chandra) Chandrasekhar
Dear Folks, I am currently developing a python program, let us call it generic.py, and I am testing out the functions therein by testing them out interactively in the python interpreter by invoking python and doing import generic Once I hit an error, I need to revise my file and reload the

Re: Is automatic reload of a module available in Python?

2010-02-17 Thread Arnaud Delobelle
R (Chandra) Chandrasekhar chyav...@gmail.com writes: Dear Folks, I am currently developing a python program, let us call it generic.py, and I am testing out the functions therein by testing them out interactively in the python interpreter by invoking python and doing import generic Once

Re: Is automatic reload of a module available in Python?

2010-02-17 Thread Jean-Michel Pichavant
R (Chandra) Chandrasekhar wrote: Dear Folks, I am currently developing a python program, let us call it generic.py, and I am testing out the functions therein by testing them out interactively in the python interpreter by invoking python and doing import generic Once I hit an error, I

Re: Is automatic reload of a module available in Python?

2010-02-17 Thread Terry Reedy
On 2/17/2010 9:27 AM, R (Chandra) Chandrasekhar wrote: Dear Folks, I am currently developing a python program, let us call it generic.py, and I am testing out the functions therein by testing them out interactively in the python interpreter by invoking python and doing import generic Once I