[Tutor] Halting execution
Matthew White
mwhite3 at ttsd.k12.or.us
Wed May 3 19:14:55 CEST 2006
Matthew,
sys.exit() is one way to do it.
Or you could use a conditional to toggle printing the output.
-mtw
On Wed, May 03, 2006 at 05:35:04PM +0100, 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
--
Matthew White - District Systems Administrator
Tigard/Tualatin School District
503.431.4128
"The greatest thing in this world is not so much where we are, but in
what direction we are moving." -Oliver Wendell Holmes
More information about the Tutor
mailing list