Python 3.7.1 和 Python 3.6.7 版本已经正式发布并且提供下载,Python 3.7.1 是 Python 3.7 的第一个维护更新版本,Python 3.7 系列是 Python 最新主要版本,包含许多新的功能和优化。Python 3.6.7 是 Python 3.6 的第七个维护更新版本,它包含许多新的功能和优化。Python 开发团队表示会继续提供 Python 3.6.x 的错误修复版本,至少在2018年底,并在2021年前继续提供安全修复程序。关于 Python 3.7 版本所包含的新功能和更新请看 Python 3.7正式版发布,包含大量新特性和优化一文。本次更新提供支持 Windows、Linux/UNIX、Mac OS X 平台安装包。
Python 3.7.1主要更新
new C API for thread-local storage
Python documentation translations
New documentation translations: Japanese, French, and Korean.
Deterministic pyc files
Built-in breakpoint()
Data Classes
Core support for typing module and generic types
Customization of access to module attributes
Postponed evaluation of annotations
Time functions with nanosecond resolution
Improved DeprecationWarning handling
Context Variables
Avoiding the use of ASCII as a default text encoding (legacy C locale coercion and 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.
Python 3.6.7主要更新
Preserving Keyword Argument Order
Simpler customization of class creation
Local Time Disambiguation
Literal String Formatting
Adding A Secrets Module To The Standard Library
Add a private version to dict
Underscores in Numeric Literals
Adding a file system path protocol
Preserving Class Attribute Definition Order
Adding a frame evaluation API to CPython
Make os.urandom() blocking on Linux (during system startup)
Asynchronous Generators (provisional)
Syntax for Variable Annotations (provisional)
Change Windows console encoding to UTF-8
Change Windows filesystem encoding to UTF-8
Asynchronous Comprehensions
相关链接
相关主题