tabnanny.NannyNag

exception tabnanny.NannyNag Raised by tokeneater() if detecting an ambiguous indent. Captured and handled in check().

tabnanny.filename_only

tabnanny.filename_only Flag indicating whether to print only the filenames of files containing whitespace related problems. This is set to true by the -q option if called as a script.

SystemExit

exception SystemExit This exception is raised by the sys.exit() function. It inherits from BaseException instead of Exception so that it is not accidentally caught by code that catches Exception. This allows the exception to properly propagate up and cause the interpreter to exit. When it is not handled, the Python interpreter exits; no stack traceback is printed. The constructor accepts the same optional argument passed to sys.exit(). If the value is an integer, it specifies the system exit

TabError

exception TabError Raised when indentation contains an inconsistent use of tabs and spaces. This is a subclass of IndentationError.

SystemError

exception SystemError Raised when the interpreter finds an internal error, but the situation does not look so serious to cause it to abandon all hope. The associated value is a string indicating what went wrong (in low-level terms). You should report this to the author or maintainer of your Python interpreter. Be sure to report the version of the Python interpreter (sys.version; it is also printed at the start of an interactive Python session), the exact error message (the exception’s associ

syslog.syslog()

syslog.syslog(message) syslog.syslog(priority, message) Send the string message to the system logger. A trailing newline is added if necessary. Each message is tagged with a priority composed of a facility and a level. The optional priority argument, which defaults to LOG_INFO, determines the message priority. If the facility is not encoded in priority using logical-or (LOG_INFO | LOG_USER), the value given in the openlog() call is used. If openlog() has not been called prior to the call to s

SystemExit.code

code The exit status or error message that is passed to the constructor. (Defaults to None.)

sysconfig.get_python_version()

sysconfig.get_python_version() Return the MAJOR.MINOR Python version number as a string. Similar to sys.version[:3].

sysconfig.parse_config_h()

sysconfig.parse_config_h(fp[, vars]) Parse a config.h-style file. fp is a file-like object pointing to the config.h-like file. A dictionary containing name/value pairs is returned. If an optional dictionary is passed in as the second argument, it is used instead of a new dictionary, and updated with the values read in the file.

syslog.openlog()

syslog.openlog([ident[, logoption[, facility]]]) Logging options of subsequent syslog() calls can be set by calling openlog(). syslog() will call openlog() with no arguments if the log is not currently open. The optional ident keyword argument is a string which is prepended to every message, and defaults to sys.argv[0] with leading path components stripped. The optional logoption keyword argument (default is 0) is a bit field – see below for possible values to combine. The optional facility