Python 3.7 已正式发布,同时发布的还有 3.6.6 , 具体详情可分别查阅更新说明:

Python 3.7 包含许多新特性和优化,亮点包括:

新语法特性:

  • PEP 563, 推迟评估类型注释

向后不兼容语法更改:

新的库模块:

新的内置功能:

数据模型改进:

  • PEP 562, customization of access to module attributes.

  • PEP 560, core support for typing module and generic types.

  • the insertion-order preservation nature of dict objects has been declared to be an official part of the Python language spec.

标准库重要改进:

CPython 实现改进:

C API 改进:

  • PEP 539, 用于 thread-local 存储的新的 C API

文档改进:

各项更改详情请查阅: