sys.ps2
  • References/Python/Python/Runtime

sys.ps2 Strings specifying the primary and secondary prompt of the interpreter. These are only defined if the interpreter is

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

format(*, chain=True) Format the exception. If chain is not True, __cause__

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

inspect.getsourcefile(object) Return the name of the Python source file in which an object was defined. This will fail with

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

traceback.format_exc(limit=None, chain=True) This is like print_exc(limit) but returns a string instead of printing

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

sysconfig.get_platform() Return a string that identifies the current platform. This is used

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

sys._current_frames() Return a dictionary mapping each thread’s identifier to the topmost stack frame currently active in that

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

sys._clear_type_cache() Clear the internal type cache. The type cache is used to speed up attribute and method lookups. Use

2025-01-10 15:47:30