Call os.exit to terminate a program : System Exit « System « Python






Call os.exit to terminate a program

Call os.exit to terminate a program

def outahere():
    import os
    print 'Bye os world'
    os._exit(99)
    print 'Never reached'

if __name__ == '__main__': outahere()

           
       








Related examples in the same category