计划在 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.
array
:array.array
'u'
类型 (wchar_t
): 改用'w'
类型 (Py_UCS4
)。builtins
:~bool
,对布尔值按位取反。symtable
:symtable.Class.get_methods()
因缺少适当的场景已被弃用。 (由 Bénédikt Tran 在 gh-119698 中贡献。)