[Tutor] Halting execution

Jason Massey jason.massey at gmail.com
Wed May 3 19:10:24 CEST 2006


How about:

import sys
sys.exit()



On 5/3/06, Matthew Webber <m_webber_sydney at yahoo.com.au> wrote:
>
> This has got to be trivial, but I can't find the answer ... I want to stop
> execution of my main script half way through. This is just for debugging -
> the code in the bottom half of the script generates a whole lot of output
> that I don't want. Inserting "break" or "return" doesn't work, but
> something
> like that is what I had in mind.
>
> I'm running under ipython on windows, FWIW.
>
> Thanks
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20060503/0c7018a9/attachment.htm 


More information about the Tutor mailing list