首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
Python 3.5 正式发布,标准库禁用 SSLv3
2015年9月14日 14:28 | 阅读 1145 次

Python 3.5 正式发布,此版本主要改进如下:

新语法特性

  • PEP 492, 异步协同和 await 语法

  • PEP 465, 新矩阵乘法运算符: a @ b.

  • PEP 448, additional unpacking generalizations.

新库模块

新内置特性

  • bytes % args, bytearray % args: PEP 461 – 添加 % 格式化字节和字节数组

  • b'\xf0\x9f\x90\x8d'.hex(), bytearray(b'\xf0\x9f\x90\x8d').hex(),memoryview(b'\xf0\x9f\x90\x8d').hex(): issue 9951 - 添加 hex 模块

  • memoryview 支持 tuple indexing (including multi-dimensional). (Contributed by Antoine Pitrou in issue 23632.)

  • Generators 添加了新 gi_yieldfrom 属性(Contributed by Benno Leslie and Yury Selivanov in issue 24450.)

  • RecursionError 异常 (Contributed by Georg Brandl in issue 19235.)

CPython 实现改进

  • LC_TYPE locale 是 POSIX locale (C locale)时,sys.stdinsys.stdout 现在使用 surrogateescape 错误处理器,替换之前的 strict 错误处理器 (Contributed by Victor Stinner in issue 19977.)

  • .pyo 不再使用,用另外一个灵活的模式替换 (See PEP 488 overview.)

  • 内置和扩展模块加载改进 (See PEP 489 overview.)

标准库值得关注的改进

安全改进

  • 整个标准库中禁用 SSLv3 (See issue 22638 for more details; this change was backported to CPython 3.4 and 2.7.)

  • HTTP cookie 解析现在更为严格,为了防止潜在的注入攻击 (Contributed by Antoine Pitrou in issue 22796.)

Windows 改进:

  • Windows 新安装器,替换了之前的 MSI

  • Windows 构建现在使用 Microsoft Visual C++ 14.0,扩展模块也是一样

更多内容请看新特性介绍页面发行说明

下载:https://www.python.org/ftp/python/3.5.0/Python-3.5.0.tgz 

文章转载自:开源中国社区 [http://www.oschina.net]    




评论 (0)
游客请输入验证码
最新评论
0
0
收藏