Python 3.18 中待移除的項目

  • No longer accept a boolean value when a file descriptor is expected. (Contributed by Serhiy Storchaka in gh-82626.)

  • decimal

    • 非標準且無文件記載的 Decimal 格式說明符號 'N',僅在 decimal 模組的 C 實作中被支援,自 Python 3.13 起已被棄用。(由 Serhiy Storchaka 於 gh-89902 中貢獻。)

  • Deprecations defined by PEP 829:

    • import lines in name.pth files are silently ignored.

    (Contributed by Barry Warsaw in gh-148641.)