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

2010-02-18 Thread Simon Brunning
2010/2/17 Arnaud Delobelle : > 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 don't know. I like t

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 prog

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

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 ne

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

2010-02-17 Thread Arnaud Delobelle
"R (Chandra) Chandrasekhar" 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 I hi

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: automatic reload

2008-11-14 Thread alex23
Mike Driscoll <[EMAIL PROTECTED]> wrote: > TurboGears somehow > watches files for changes, so you might want to check out their source > to see how it works. I'm sure it's something similar. I think that's more an inherited feature from TG's use of CherryPy. There's some code provided on the CP si

Fw: automatic reload

2008-11-14 Thread Alan Baljeu
Alan Baljeu http://www.collaborative-systems.org Intelligent software that works _with_ you. - Forwarded Message From: Alan Baljeu <[EMAIL PROTECTED]> To: Mike Driscoll <[EMAIL PROTECTED]> Sent: Friday, November 14, 2008 2:06:26 PM Subject: Re: automatic reload I t

Re: automatic reload

2008-11-14 Thread Mike Driscoll
On Nov 14, 11:04 am, Alan Baljeu <[EMAIL PROTECTED]> wrote: > I need a solution for automatically reloading files I edited.  This is in a > unit testing/fixing context, so there shouldn't be much problem with leftover > data.  I just need to be able to call a reload_changed() method of some sort

automatic reload

2008-11-14 Thread Alan Baljeu
I need a solution for automatically reloading files I edited. This is in a unit testing/fixing context, so there shouldn't be much problem with leftover data. I just need to be able to call a reload_changed() method of some sort before rerunning tests. Stopping and restarting the python inter