python越来越火了。
![python3.7.1有哪些更新](/c2021/img/data-img.jpg)
2018年10月20日,python发布了新版本3.7.1。
3.7.1是3.7版本的第一个维护版本。这是python3.7系列的最新稳定版,包含了不少上版改进优化和新功能。差不多一个月过去了,新版到底有哪些新增的改进呢?
![python3.7.1有哪些更新](/c2021/img/data-img.jpg)
- PEP 539, new C API for thread-local storage
新的线程本地存储的C的API接口;
- PEP 545, Python documentation translations
Python文档翻译
- New documentation translations: Japanese, French, and Korean.
添加了日语、法语和韩语的新的文档,
- PEP 552, Deterministic pyc files
可启用.pyc文件后缀
- PEP 553, Built-in breakpoint()
断点机制可以新建内建断点
可以使用data类对象了
- 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)
避免使用ASCII作为默认文本编码(可运行库强制UTF-8模式)
- The insertion-order preservation nature of dict objects is now an official part of the Python language spec.
DICOPTOVES的插入顺序保存特性现在是Python语言规范的正式部分。
- Notable performance improvements in many areas.
在许多领域有显著的性能改进