February 2006
Intermediate to advanced
648 pages
14h 53m
English
The sys module contains variables and functions that pertain to the operation of the interpreter and its environment. The following variables are defined:
api_versionAn integer representing the C API version of the Python interpreter. Used when working with extension modules.
argvList of command-line options passed to a program. argv[0] is the name of the program.
builtin_module_namesTuple containing names of modules built into the Python executable.
byteorderNative byte-ordering of the machine—’little’ for little-endian or ‘big’ for big-endian.
copyrightString containing copyright message.
__displayhook__Original value of the displayhook() function.
__excepthook__Original value of the excepthook() function.
dllhandleInteger handle ...
Read now
Unlock full access