Develop-test-debug cycle

Dale Strickland-Clark dale at riverhall.NOTHANKS.co.uk
Wed Mar 20 10:52:46 EST 2002


Gustavo Niemeyer <niemeyer at conectiva.com> wrote:

>You could save this in a file and execute it with "python -i file.py".

That's true but it doesn't overcome the problem of having to quit
after each error - which is what I find so irritating because it is so
time consuming

>It seems to work here:
>
>[niemeyer at ibook niemeyer]$ echo 'a = 1' > mod.py
>>>> import mod
>>>> mod.a
>1
>
>[niemeyer at ibook niemeyer]$ echo 'a = 2' > mod.py
>>>> reload(mod)
><module 'mod' from 'mod.py'>
>>>> mod.a
>2

This is a rather simple case. More comlex cases with classes don't
behave so reliably.

>Have you looked at pdb?

Yes but this looks pretty much like a primitive form of what Pythonwin
does for you.

--
Dale Strickland-Clark
Riverhall Systems Ltd



More information about the Python-list mailing list