sys.setprofile()

sys.setprofile(profilefunc) Set the system’s profile function, which allows you to implement a Python source code profiler in

2016-10-07 17:43:57
traceback.TracebackException.format()

format(*, chain=True) Format the exception. If chain is not True, __cause__

2016-10-07 17:45:12
gc.get_objects()

gc.get_objects() Returns a list of all objects tracked by the collector, excluding the list returned.

2016-10-07 17:33:29
contextlib.ExitStack.callback()

callback(callback, *args, **kwds) Accepts an arbitrary callback function and arguments and adds it to the callback stack.

2016-10-07 17:29:20
traceback.format_exc()

traceback.format_exc(limit=None, chain=True) This is like print_exc(limit) but returns a string instead of printing

2016-10-07 17:45:09
sys.path

sys.path A list of strings that specifies the search path for modules. Initialized from the environment variable PYTHONPATH

2016-10-07 17:43:55
sys.ps2

sys.ps2 Strings specifying the primary and secondary prompt of the interpreter. These are only defined if the interpreter is

2016-10-07 17:43:56
sys.modules

sys.modules This is a dictionary that maps module names to modules which have already been loaded. This can be manipulated to

2016-10-07 17:43:55
inspect.getcomments()

inspect.getcomments(object) Return in a single string any lines of comments immediately preceding the object’s source code (for

2016-10-07 17:34:59
sys.setrecursionlimit()

sys.setrecursionlimit(limit) Set the maximum depth of the Python interpreter stack to limit. This limit prevents infinite

2016-10-07 17:43:57