Call os.exit to terminate a program : System Exit : System PYTHON examples


PYTHON examples » System » System Exit »

 

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 Scripts with Example Source Code in same category :

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo System
» System Exit