计划在 Python 3.18 中移除¶
当需要一个文件描述符时将不再接受布尔值。 (由 Serhiy Storchaka 在 gh-82626 中贡献。)
-
Accepting objects with false values (like
0and[]) except empty strings, byte-like objects andNonein the URL parsing functions has been deprecated since Python 3.16. (Contributed by Jacob Walls in gh-63293.)
由 PEP 829 定义的弃用:
在
name.pth文件中的import行会被静默地忽略。
(由 Barry Warsaw 在 gh-148641 中贡献。)