Python 3.16 中待移除的項目

  • The import system:

    • Setting __loader__ on a module while failing to set __spec__.loader is deprecated. In Python 3.16, __loader__ will cease to be set or taken into consideration by the import system or the standard library.

  • arrayarray.array 'u' 型別 (wchar_t):請改用 'w' 型別 (Py_UCS4)。

  • builtins~bool,對 bool 進行位元反轉。

  • symtable:由於並沒有太多關注,已棄用 symtable.Class.get_methods()。 (由 Bénédikt Tran 於 gh-119698 貢獻。)