traceback.TracebackException.lineno
  • References/Python/Python/Runtime

lineno For syntax errors - the line number where the error occurred.

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

inspect.isabstract(object) Return true if the object is an abstract base class.

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

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

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

class traceback.StackSummary classmethod extract(frame_gen, *, limit=None, lookup_lines=True

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

traceback.print_stack(f=None, limit=None, file=None) Print up to limit stack trace entries (starting from the invocation

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

site.addsitedir(sitedir, known_paths=None) Add a directory to sys.path and process its .pth files. Typically used

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

gc.get_debug() Return the debugging flags currently set.

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

sysconfig.get_platform() Return a string that identifies the current platform. This is used

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