gracefully quit

Oleg Broytmann phd at phd.russ.ru
Tue Mar 14 13:35:17 CET 2000


On Tue, 14 Mar 2000, Milos Prudek wrote:
> How can I gracefully quit python program in the middle? Without raising
> an exception that would clutter screen with traceback.

import sys
sys.exit()
   or
sys.exit(0)
   or
sys.exit(1)
   or
sys.exit("error")

Oleg.
---- 
    Oleg Broytmann      Foundation for Effective Policies      phd at phd.russ.ru
           Programmers don't die, they just GOSUB without RETURN.





More information about the Python-list mailing list