sys.argv
  • References/Python/Python/Runtime

sys.argv The list of command line arguments passed to a Python script. argv[0] is the script name (it is operating

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

inspect.getinnerframes(traceback, context=1) Get a list of frame records for a traceback’s frame and all inner frames. These

2025-01-10 15:47:30
inspect.Parameter.annotation
  • References/Python/Python/Runtime

annotation The annotation for the parameter. If the parameter has no annotation, this attribute is set to Parameter.empty

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

sys.exc_info() This function returns a tuple of three values that give information about the exception that is currently being

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

push(exit) Adds a context manager’s __exit__() method to the callback stack. As

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

traceback.extract_tb(tb, limit=None) Return a list of “pre-processed” stack trace entries extracted from the traceback object

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

text For syntax errors - the text where the error occurred.

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

site.getusersitepackages() Return the path of the user-specific site-packages directory, USER_SITE. If it is not

2025-01-10 15:47:30
abc.ABCMeta.register()
  • References/Python/Python/Runtime

register(subclass) Register subclass as a “virtual subclass” of this ABC. For example:

2025-01-10 15:47:30
contextlib.ExitStack
  • References/Python/Python/Runtime

class contextlib.ExitStack A context manager that is designed to make it easy to programmatically combine other context managers

2025-01-10 15:47:30