Error Output Redirection and Program Termination : System Error : System : Python examples (example source code) Organized by topic

C++
PHP
Python


Python  »  System   » [  System Error  ]  Screenshots 
 



Error Output Redirection and Program Termination



import sys


sys.stderr.write('Warning, log file not found starting a new one\n')

#The most direct way to terminate a script is to use "sys.exit()"

           
       
Related examples in the same category
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.