sys.
  • References/Python/Python/Runtime

sys._debugmallocstats() Print low-level information to stderr about the state of CPython’s memory allocator.

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

warnings.formatwarning(message, category, filename, lineno, line=None) Format a warning the standard way. This returns a string

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

sys.dont_write_bytecode If this is true, Python won’t try to write .pyc files on the import of source modules.

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

sysconfig.get_config_var(name) Return the value of a single variable name. Equivalent to get_config_vars().get(name)

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

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

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

gc.isenabled() Returns true if automatic collection is enabled.

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

inspect.getcoroutinestate(coroutine) Get current state of a coroutine object. The function is intended to be used with coroutine

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

inspect.getmoduleinfo(path) Returns a named tuple ModuleInfo(name, suffix, mode

2025-01-10 15:47:30