瀏覽

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • Python »
  • Python 3.0.1 說明文件 »
  • The Python Standard Library »
  • |

Python Runtime Services¶

The modules described in this chapter provide a wide range of services related to the Python interpreter and its interaction with its environment. Here’s an overview:

  • sys — System-specific parameters and functions
  • builtins — Built-in objects
  • __main__ — Top-level script environment
  • warnings — Warning control
    • Warning Categories
    • The Warnings Filter
    • Temporarily Suppressing Warnings
    • Testing Warnings
    • Available Functions
    • Available Context Managers
  • contextlib — Utilities for with-statement contexts.
  • abc — Abstract Base Classes
  • atexit — Exit handlers
    • atexit Example
  • traceback — Print or retrieve a stack traceback
    • Traceback Examples
  • __future__ — Future statement definitions
  • gc — Garbage Collector interface
  • inspect — Inspect live objects
    • Types and members
    • Retrieving source code
    • Classes and functions
    • The interpreter stack
  • site — Site-specific configuration hook
  • fpectl — Floating point exception control
    • Example
    • Limitations and other considerations

上個主題

trace — Trace or track Python statement execution

下個主題

sys — System-specific parameters and functions

本頁

  • 顯示原始碼

快速搜尋

瀏覽

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • Python »
  • Python 3.0.1 說明文件 »
  • The Python Standard Library »
  • |
© 版權所有 1990-2025, Python Software Foundation.
The Python Software Foundation is a non-profit corporation. Please donate.

最後更新於 8月 10, 2025。
Created using Sphinx 1.8.4.