22

Python 3.8.0 正式发布 - OSCHINA

 4 years ago
source link: https://www.oschina.net/news/110561/python-3-8-0-released
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Python 3.8.0 正式发布

发布于 2019年10月15日

Python 3.8.0 正式发布了,以下是主要更新内容:

  • PEP 572, 赋值表达式
  • PEP 570, 仅位置参数
  • PEP 587, Python 初始化配置(改进嵌入)
  • PEP 590, Vectorcall:CPython 的快速调用协议
  • PEP 578, 运行时审核挂钩
  • PEP 574, 带外数据的 Pickle 协议 5
  • Typing 相关:PEP 591PEP 586PEP 589
  • 并行文件系统缓存,用于编译的字节码
  • 调试版本与发行版本共享 ABI
  • f 字符串支持一个方便的 = 说明符进行调试
  • continue 现在在 finally: 块中
  • 在 Windows 上,默认的异步事件循环现在是 ProactorEventLoop
  • 在 macOS 上,默认情况下现在在多进程中使用 spawn start 方法
  • 现在,多进程(multiprocessing)可以使用共享内存段
  • typed_ast 合并回 CPython
  • LOAD_GLOBAL 现在快了 40%
  • pickle 现在默认使用协议 4,提高了性能

更新说明:https://www.python.org/downloads/release/python-380/


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK