Newbie: How to do an exit ?

Nick Maclaren nmm1 at
Fri Apr 7 08:20:45 EDT 2000

In article <38EDC1DA.62CBFCF3 at>, Pascal Fremaux <pf at> writes:
|> How to exit from a program ?
|> I don't find a command such as exit(0) in C

Try one of:

    raise SystemExit(0)

    import sys

    from sys import exit

Nick Maclaren,
University of Cambridge Computing Service,
New Museums Site, Pembroke Street, Cambridge CB2 3QG, England.
Email:  nmm1 at
Tel.:  +44 1223 334761    Fax:  +44 1223 334679

More information about the Python-list mailing list