sys.platform This string contains a platform identifier that can be used to append platform-specific components to sys
sys.setdlopenflags(n) Set the flags used by the interpreter for dlopen() calls, such as when the interpreter loads
sys._debugmallocstats() Print low-level information to stderr about the state of CPython’s memory allocator.
sys.get_coroutine_wrapper() Returns None, or a wrapper set by set_coroutine_wrapper().
sys._xoptions A dictionary of the various implementation-specific flags passed through the -X command-line option
inspect.getcoroutinelocals(coroutine) This function is analogous to getgeneratorlocals(), but works for coroutine
warnings.resetwarnings() Reset the warnings filter. This discards the effect of all previous calls to filterwarnings()
__subclasshook__(subclass) (Must be defined as a class method.) Check whether subclass
sys.dont_write_bytecode If this is true, Python won’t try to write .pyc files on the import of source modules.
inspect.getgeneratorlocals(generator) Get the mapping of live local variables in generator to their current values
Page 15 of 26