stop script w/o exiting interpreter

Colin J. Williams cjw at sympatico.ca
Fri Jan 26 08:27:59 EST 2007


Alan Isaac wrote:
> I'm fairly new to Python and I've lately been running a script at
> the interpreter while working on it.  Sometimes I only want to
> run the first quarter or half etc.  What is the "good" way to do this?
> 
> Possible ugly hacks include:
> 
> - stick an undefined name at the desired stop point
> - comment out the last half
> 
> I do not like these and assume that I have overlooked the obvious.
> 
> Thanks,
> Alan Isaac
> 
> 
Alan,

If you are using Windows, you might consider PyScripter.
            http://mmm-experts.com/Products.aspx?ProductId=4

Colin W.




More information about the Python-list mailing list