traceback.print_exception()
  • References/Python/Python/Runtime

traceback.print_exception(etype, value, tb, limit=None, file=None, chain=True) Print exception information and stack trace entries

2025-01-10 15:47:30
sys.path_hooks
  • References/Python/Python/Runtime

sys.path_hooks A list of callables that take a path argument to try to create a finder

2025-01-10 15:47:30
inspect.getcomments()
  • References/Python/Python/Runtime

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

2025-01-10 15:47:30
inspect.getsourcelines()
  • References/Python/Python/Runtime

inspect.getsourcelines(object) Return a list of source lines and starting line number for an object. The argument may be a module

2025-01-10 15:47:30
traceback.TracebackException.stack
  • References/Python/Python/Runtime

stack A StackSummary representing the traceback.

2025-01-10 15:47:30
traceback.TracebackException.format()
  • References/Python/Python/Runtime

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

2025-01-10 15:47:30
sys.stdin
  • References/Python/Python/Runtime

sys.stdin sys.stdout sys.stderr File

2025-01-10 15:47:30
sys.path
  • References/Python/Python/Runtime

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

2025-01-10 15:47:30
inspect.getsourcefile()
  • References/Python/Python/Runtime

inspect.getsourcefile(object) Return the name of the Python source file in which an object was defined. This will fail with

2025-01-10 15:47:30
gc.garbage
  • References/Python/Python/Runtime

gc.garbage A list of objects which the collector found to be unreachable but could not be freed (uncollectable objects). Starting

2025-01-10 15:47:30