[Tutor] import sys; sys.exit()
alan.gauld at btinternet.com
Thu Jan 10 23:03:32 CET 2008
"Andrew Volmensky" <warewerks at verizon.net> wrote
> warewerks-01:~ andrew$ python
> Python 2.4.4 (#1, Oct 18 2006, 10:34:39)
> [GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
> Type "help", "copyright", "credits" or "license" for more
> >>> import sys
> >>> sys.exit()
> warewerks-01:~ andrew$
> Does that behavior look correct? Apparently I have exit out of the
> Python interpreter; yes?
Yes thats absolutely correct.
> Kent - also thank you! I hope "exceptions" are covered in a
Indeed they are under Error handling.
More information about the Tutor