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

sys.maxsize An integer giving the maximum value a variable of type Py_ssize_t can take. It’s usually 2**31

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

kind Describes how argument values are bound to the parameter. Possible values (accessible via Parameter, like

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

contextlib.redirect_stderr(new_target) Similar to redirect_stdout() but redirecting

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

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

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

sys.last_type sys.last_value sys.last_traceback These three variables

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

sys.modules This is a dictionary that maps module names to modules which have already been loaded. This can be manipulated to

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

inspect.getmro(cls) Return a tuple of class cls’s base classes, including cls, in method resolution order. No class appears

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

sys.setrecursionlimit(limit) Set the maximum depth of the Python interpreter stack to limit. This limit prevents infinite

2025-01-10 15:47:30