歡迎您光臨本站 註冊首頁

Python 3.5 正式發布,標準庫禁用 SSLv3

←手機掃碼閱讀     admin @ 2015-09-14 , reply:0

Python 3.5 正式發布,此版本主要改進如下:

新語法特性

  • PEP 492, 非同步協同和 await 語法

  • PEP 465, 新矩陣乘法運算符: a @ b.

  • PEP 448, additional unpacking generalizations.

新庫模塊

  • typing: PEP 484 – Type Hints.

  • zipapp: PEP 441 改進 Python ZIP 應用支持.

新內置特性

  • 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 屬性(Contributedby Benno Leslie and Yury Selivanov in issue 24450.)

  • RecursionError 異常 (Contributed by Georg Brandlin 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.)

標準庫值得關注的改進

  • collections.OrderedDict 現在使用 C 實現,比之前速度快4 到 100 倍

  • ssl 模塊 支持 Memory BIO

  • os.scandir() 函數

  • functools.lru_cache() 大部分使用 C 實現

  • subprocess.run() 函數

  • 增強 traceback 模塊,提升性能

安全改進

  • 整個標準庫中禁用 SSLv3 (See issue 22638 for more details; this change wasbackported to CPython 3.4 and 2.7.)

  • HTTP cookie 解析現在更為嚴格,為了防止潛在的注入攻擊 (Contributed by Antoine Pitrouin 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


[admin ] Python 3.5 正式發布,標準庫禁用 SSLv3已經有425次圍觀

http://coctec.com/news/all/show-post-204802.html