inspect.getattr_static()
  • References/Python/Python/Runtime

inspect.getattr_static(obj, attr, default=None) Retrieve attributes without triggering dynamic lookup via the descriptor protocol

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

sys.setdlopenflags(n) Set the flags used by the interpreter for dlopen() calls, such as when the interpreter loads

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

sys.platform This string contains a platform identifier that can be used to append platform-specific components to sys

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

parameters An ordered mapping of parameters’ names to the corresponding Parameter objects.

2025-01-10 15:47:30
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
contextlib.ContextDecorator
  • References/Python/Python/Runtime

class contextlib.ContextDecorator A base class that enables a context manager to also be used as a decorator.

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

sys.getsizeof(object[, default]) Return the size of an object in bytes. The object can be any type of object. All built-in objects

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

sys.stdout sys.stderr File objects used by the interpreter for standard input

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

inspect.getfullargspec(func) Get the names and default values of a Python function’s arguments. A named

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

traceback.print_last(limit=None, file=None, chain=True) This is a shorthand for print_exception(sys.last_type, sys.last_value

2025-01-10 15:47:30