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

traceback.format_tb(tb, limit=None) A shorthand for format_list(extract_tb(tb, limit)).

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
gc.get_referrers()
  • References/Python/Python/Runtime

gc.get_referrers(*objs) Return the list of objects that directly refer to any of objs. This function will only locate those

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
sys.
  • References/Python/Python/Runtime

sys.__stdout__ sys.__stderr__ These objects contain the original values of stdin, stderr

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

sys.executable A string giving the absolute path of the executable binary for the Python interpreter, on systems where this

2025-01-10 15:47:30
builtins
  • References/Python/Python/Runtime

This module provides direct access to all ‘built-in’ identifiers of Python; for example, builtins.open is the full name for the built-in function

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
inspect.signature()
  • References/Python/Python/Runtime

inspect.signature(callable, *, follow_wrapped=True) Return a Signature object for the given callable:

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