相比 3.4 系列,3.5 系列主要新特性有:

  • PEP 448, additional unpacking generalizations
  • PEP 461, adding support for "%-formatting" for bytes and bytearray objects
  • PEP 465, a new operator (@) for matrix multiplication
  • PEP 471, os.scandir(), a faster alternative to os.walk()
  • PEP 475, adding support for automatic retries of interrupted system calls
  • PEP 479, change StopIteration handling inside generators
  • PEP 484, the typing module, a new standard for type annotations
  • PEP 486, making the Windows Python launcher aware of virtual environments
  • PEP 488, eliminating .pyo files
  • PEP 489, multi-phase extension module initialization
  • PEP 492, coroutines with async and await syntax

Python 3.5 目前已进入“特性冻结 | feature freeze”阶段。基本上不会在往 3.5 版中增加新特性了。不过,还有不少特性没准备加到 3.5.0 beta 1 中,计划加在 beta 2 中。

Python 3.5 时间表

  • 3.5.0 alpha 1: February 8, 2015
  • 3.5.0 alpha 2: March 9, 2015
  • 3.5.0 alpha 3: March 29, 2015
  • 3.5.0 alpha 4: April 19, 2015
  • 3.5.0 beta 1: May 24, 2015
  • 3.5.0 beta 2: July 5, 2015
  • 3.5.0 beta 3: July 26, 2015
  • 3.5.0 candidate 1: August 9, 2015
  • 3.5.0 candidate 2: August 23, 2015
  • 3.5.0 candidate 3: September 6, 2015
  • 3.5.0 final: September 13, 2015

更多信息:https://www.python.org/downloads/release/python-350b1/

14 收藏


直接登录

推荐关注