1. XenForo 1.5.14 中文版——支持中文搜索!现已发布!查看详情
  2. Xenforo 爱好者讨论群:215909318 XenForo专区

新闻 Python 3.5 正式发布,标准库禁用 SSLv3 下载

Discussion in '软件资讯' started by 漂亮的石头, 2015-09-14.

  1. 漂亮的石头

    漂亮的石头 版主 Staff Member

    Joined:
    2012-02-10
    Messages:
    487,295
    Likes Received:
    47
    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
    Python 3.5 正式发布,标准库禁用 SSLv3下载地址
     
Loading...