The sys module contains variables and functions that pertain to the operation of the interpreter and its environment. The following variables are defined:
An integer representing the C API version of the Python interpreter. Used when working with extension modules.
List of command-line options passed to a program. argv is the name of the program.
Tuple containing names of modules built into the Python executable.
Native byte-ordering of the machine—’little’ for little-endian or ‘big’ for big-endian.
String containing copyright message.
Original value of the displayhook() function.
Original value of the excepthook() function.
Integer handle ...