发布于 2017-12-19 23:51:14 | 241 次阅读 | 评论: 0 | 来源: 网友投递
Python编程语言
Python 是一种面向对象、解释型计算机程序设计语言,由Guido van Rossum于1989年底发明,第一个公开发行版发行于1991年。Python语法简洁而清晰,具有丰富和强大的类库。它常被昵称为胶水语言,它能够把用其他语言制作的各种模块(尤其是C/C++)很轻松地联结在一起。
Python 3.6.4 已发布,Python 3.6.4 是 2016 年发布的 Python 3.6 的第四个维护版本。
与 Python 3.6.4 的首个 RC 版相比,3.6.4 并没有任何新的代码更改,下面简单看看 Python 3.6.4 RC1 的更新内容。
更新内容较多,包含了 C API、工具示例、IDLE、macOS、Windows、构建、测试、文档、库、核心这几大方面,详细的内容可点此进行参阅。
核心
bpo-31949: Fixed several issues in printing tracebacks (PyTraceBack_Print())
bpo-30696: Fix the interactive interpreter looping endlessly when no memory.
bpo-20047: Bytearray methods partition() and rpartition() now accept only bytes-like objects as separator, as documented. In particular they now raise TypeError rather of returning a bogus result when an integer is passed as a separator.
bpo-31852: Fix a segmentation fault caused by a combination of the async soft keyword and continuation lines.
bpo-21720: BytesWarning no longer emitted when the fromlist argument of __import__()
or the __all__
attribute of the module contain bytes instances.
bpo-28603: Print the full context/cause chain of exceptions on interpreter exit, even if an exception in the chain is unhashable or compares equal to later ones. Patch by Zane Bitter.
库
bpo-28556: Two minor fixes for typing
module: allow shallow copying instances of generic classes, improve interaction of __init_subclass__
with generics. Original PRs by Ivan Levkivskyi.
bpo-27240: The header folding algorithm for the new email policies has been rewritten, which also fixes bpo-30788, bpo-31831, and bpo-32182. In particular, RFC2231 folding is now done correctly.
bpo-32186: io.FileIO.readall() and io.FileIO.read() now release the GIL when getting the file size. Fixed hang of all threads with inaccessible NFS server. Patch by Nir Soffer.
测试
bpo-31380: Skip test_httpservers test_undecodable_file on macOS: fails on APFS.
bpo-31705: Skip test_socket.test_sha256() on Linux kernel older than 4.5. The test fails with ENOKEY on kernel 3.10 (on ppc64le). A fix was merged into the kernel 4.5.
bpo-31174: Fix test_tools.test_unparse: DirectoryTestCase now stores the names sample to always test the same files. It prevents false alarms when hunting reference leaks.
bpo-30695: Add the set_nomemory(start, stop)
and remove_mem_hooks()
functions to the _testcapi module.
预计下个维护版本将在未来三个月内发布,大约是 2018 年 3 月底。
下载地址:https://www.python.org/downloads/release/python-364/
来自:http://blog.python.org/2017/12/python-364-is-now-available.html