The sys Module
sys module contains interpreter-related exports. It also
provides access to some environment components, such as the command
line, standard streams, and so on.
Command-line argument strings list:
arguments...]. Like C’s
Indicates the native byte-order (e.g.,
Tuple of string names of C modules compiled into this Python interpreter.
String containing the Python interpreter copyright.
Python DLL integer handle; Windows only (see the Python Library Reference).
Called by Python to display result values in interactive sessions; assign
sys.displayhookto a one-argument function to customize output.
excepthook(type, value, traceback)
Called by Python to display uncaught exception details to
sys.excepthookto a three-argument function to customize exception displays.
Returns tuple of three values describing the exception currently being handled
typeis the exception class,
valueis the instance of the exception class raised, and
tracebackis an object that gives access to the runtime call stack as it existed when the exception occurred. Specific to current thread. Subsumes
exc_tracebackin Python 1.5 and later (all three of which are removed completely in Python 3.0). See the
tracebackmodule in the Python Library Reference for processing traceback objects, and The try Statement for more ...