sys.
  • References/Python/Python/Runtime

sys._getframe([depth]) Return a frame object from the call stack. If optional integer depth is given, return the frame

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

warnings.warn_explicit(message, category, filename, lineno, module=None, registry=None, module_globals=None) This is a low-level

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

sys.getfilesystemencoding() Return the name of the encoding used to convert Unicode filenames into system file names. The result

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

sys.last_traceback These three variables are not always defined; they are set when an exception is not handled and the interpreter

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

sys.__displayhook__ sys.__excepthook__ These objects contain the original values of displayhook and

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

sys.getswitchinterval() Return the interpreter’s “thread switch interval”; see setswitchinterval().

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

gc.set_debug(flags) Set the garbage collection debugging flags. Debugging information will be written to sys.stderr

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

sys.version A string containing the version number of the Python interpreter plus additional information on the build number

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

sysconfig.get_python_version() Return the MAJOR.MINOR Python version number as a string. Similar to sys.version[:3]

2025-01-10 15:47:30