traceback.TracebackException.format_exception_only()
  • References/Python/Python/Runtime

format_exception_only() Format the exception part of the traceback. The return value is a generator

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

msg For syntax errors - the compiler error message.

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

__cause__ A TracebackException of the original __cause__.

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

inspect.istraceback(object) Return true if the object is a traceback.

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

sys.version_info A tuple containing the five components of the version number: major, minor, micro

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

inspect.isgenerator(object) Return true if the object is a generator.

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

@contextlib.contextmanager This function is a decorator that can be used to define a

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

inspect.trace(context=1) Return a list of frame records for the stack between the current frame and the frame in which an exception

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

replace(*[, parameters][, return_annotation]) Create a new Signature instance based on the instance replace was invoked on.

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

sys.exit([arg]) Exit from Python. This is implemented by raising the

2025-01-10 15:47:30