Qutting the interpreter
Mikael Olofsson
mikael at isy.liu.se
Fri Mar 31 02:12:50 EST 2000
On 31-Mar-00 Michael Ackerman wrote:
> I am trying to find a way of quitting the interpreter. On p.3 of the
> tutorial it says this can be done by 'import sys; sys.exit()', but this
> produces an error message when I try it. I used to be able to quit by
> 'raise SystemExit', but that no longer works either. So how is this done?
> I am using version 1.5.2c.1 of Python on a Mac.
Try ^D
That works at least on Unix. If you write quit at the prompt you should
get this information.
/Mikael
-----------------------------------------------------------------------
E-Mail: Mikael Olofsson <mikael at isy.liu.se>
WWW: http://www.dtr.isy.liu.se/dtr/staff/mikael
Phone: +46 - (0)13 - 28 1343
Telefax: +46 - (0)13 - 28 1339
Date: 31-Mar-00
Time: 09:10:47
This message was sent by XF-Mail.
-----------------------------------------------------------------------
More information about the Python-list
mailing list