Release Date: 2018-06-27
Python 3.7.0 is the newest major release of the Python language, and it contains many new features and optimizations.
Among the major new features in Python 3.7 are:
PEP 539, new C API for thread-local storage
PEP 545, Python documentation translations
New documentation translations: Japanese, French, and Korean.
PEP 552, Deterministic pyc files
PEP 553, Built-in breakpoint()
PEP 557, Data Classes
PEP 560, Core support for typing module and generic types
PEP 562, Customization of access to module attributes
PEP 563, Postponed evaluation of annotations
PEP 564, Time functions with nanosecond resolution
PEP 565, Improved DeprecationWarning handling
PEP 567, Context Variables
Avoiding the use of ASCII as a default text encoding (PEP 538, legacy C locale coercion and PEP 540, forced UTF-8 runtime mode)
The insertion-order preservation nature of dict objects is now an official part of the Python language spec.
Notable performance improvements in many areas.
Please see What ’ s New In Python 3.7 for more information.
Python 3.7 版本带来了众多新特性和优化,包括新的线程本地存储 C API、确定性的 pyc 文件、内置的 breakpoint() 函数、数据类的支持、类型模块的核心支持等。此外,该版本还改进了 DeprecationWarning 的处理方式,并引入了 Context Variables。字典对象的插入顺序保持特性现已成为 Python 语言规范的一部分。
1367

被折叠的 条评论
为什么被折叠?



