variants minor is the minor version number for example indicates windows whereas indicates windows xp build is the windows build number platform identifies the platform and is an integer with one of the following common values (win on windows ) (windows , or me) (windows nt xp)or (windows cetext is string containing additional information such as "service pack setcheckinterval(nsets the number of python virtual machine instructions that must be executed by the interpreter before it checks for periodic events such as signals and thread context switches the default value is setdefaultencoding(encsets the default encoding enc is string such as 'asciior 'utf- this function is only defined inside the site module it can be called from user-definable sitecustomize modules setdlopenflags(flagssets the flags passed to the dlopen(functionwhich is used to load extension modules on unix this will affect the way in which symbols are resolved between libraries and other extension modules flags is the bitwise or of values that can be found in the dl module (see "network programming")--for examplesys setdlopenflags(dl rtld_now dl rtld_globalsetprofile(pfuncsets the system profile function that can be used to implement source code profiler setrecursionlimit(nchanges the recursion limit for functions the default value is note that the operating system may impose hard limit on the stack sizeso setting this too high may cause the python interpreter process to crash with segmentation fault or access violation settrace(tfuncsets the system trace functionwhich can be used to implement debugger refer to for information about the python debugger traceback the traceback module is used to gather and print stack traces of program after an exception has occurred the functions in this module operate on traceback objects such as the third item returned by the sys exc_info(function the main use of this module is in code that needs to report errors in non-standard way--for exampleif you were running python programs deeply embedded within network server and you wanted to redirect tracebacks to log file print_tb(traceback [limit [file]]prints up to limit stack trace entries from traceback to the file file if limit is omittedall the entries are printed if file is omittedthe output is sent to sys stderr lib fl ff