Qutting the interpreter

Michael Ackerman ack at simplyweb.net
Thu Mar 30 23:38:31 EST 2000


Hi,
   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.
                               Thanks,
                               Michael





More information about the Python-list mailing list