NumPy 1.14.1 Release Notes#
这是针对 1.14.0 版本发布后报告的一些问题进行的错误修复版本。主要修复的问题如下。
新数组打印问题,特别是复数值的打印。请报告任何可能出现的其他问题。
由于新的
optimized=True默认值,np.einsum存在问题。已应用一些优化修复,现在optimize=False是默认值。当
axis=<some-number>时,np.unique中的排序顺序现在将始终是子数组元素的字典序。在之前的 NumPy 版本中,存在一个优化,可能导致子数组按无符号字节字符串进行排序。1.14.0 版本中将结构化数组的多字段索引返回视图而非副本的更改已被撤销,但仍按计划在 NumPy 1.15 中实现。受影响的用户应阅读 1.14.1 NumPy 用户指南的“basics/structured arrays/accessing multiple fields”部分,以获取有关如何管理此过渡的建议。
此版本支持的 Python 版本为 2.7 和 3.4 - 3.6。PIP 提供的 Python 3.6 wheel 是使用 Python 3.6.2 构建的,应与所有之前的 Python 3.6 版本兼容。源发行版已使用 Cython 0.26.1 进行 Cython 化,已知该版本 **不支持** 即将发布的 Python 3.7 版本。希望运行 Python 3.7 的用户应检出 NumPy 仓库,并尝试使用尚未发布的 Cython master 分支进行构建。
贡献者#
共有 14 人为该版本贡献了代码。名字旁有“+”号的人是首次贡献补丁。
Allan Haldane
Charles Harris
Daniel Smith
Dennis Weyland +
Eric Larson
Eric Wieser
Jarrod Millman
Kenichi Maehashi +
Marten van Kerkwijk
Mathieu Lamarre
Sebastian Berg
Simon Conseil
Simon Gibbons
xoviat
已合并的拉取请求#
此版本共合并了 36 个 pull request。
#10339: BUG: restrict the __config__ modifications to win32
#10368: MAINT: Adjust type promotion in linalg.norm
#10375: BUG: add missing paren and remove quotes from repr of fieldless…
#10395: MAINT: Update download URL in setup.py.
#10396: BUG: fix einsum issue with unicode input and py2
#10397: BUG: fix error message not formatted in einsum
#10398: DOC: add documentation about how to handle new array printing
#10403: BUG: Set einsum optimize parameter default to False.
#10424: ENH: Fix repr of np.record objects to match np.void types #10412
#10425: MAINT: Update zesty to artful for i386 testing
#10431: REL: Add 1.14.1 release notes template
#10435: MAINT: Use ValueError for duplicate field names in lookup (backport)
#10534: BUG: Provide a better error message for out-of-order fields
#10536: BUG: Resize bytes columns in genfromtxt (backport of #10401)
#10537: BUG: multifield-indexing adds padding bytes: revert for 1.14.1
#10539: BUG: fix np.save issue with python 2.7.5
#10540: BUG: Add missing DECREF in Py2 int() cast
#10541: TST: Add circleci document testing to maintenance/1.14.x
#10542: BUG: complex repr has extra spaces, missing + (1.14 backport)
#10550: BUG: Set missing exception after malloc
#10557: BUG: In numpy.i, clear CARRAY flag if wrapped buffer is not C_CONTIGUOUS.
#10558: DEP: Issue FutureWarning when malformed records detected.
#10559: BUG: Fix einsum optimize logic for singleton dimensions
#10560: BUG: Fix calling ufuncs with a positional output argument.
#10561: BUG: Fix various Big-Endian test failures (ppc64)
#10562: BUG: Make dtype.descr error for out-of-order fields.
#10563: BUG: arrays not being flattened in union1d
#10607: MAINT: Update sphinxext submodule hash.
#10608: BUG: Revert sort optimization in np.unique.
#10609: BUG: infinite recursion in str of 0d subclasses
#10610: BUG: Align type definition with generated lapack
#10612: BUG/ENH: Improve output for structured non-void types
#10622: BUG: deallocate recursive closure in arrayprint.py (1.14 backport)
#10624: BUG: Correctly identify comma separated dtype strings
#10629: BUG: deallocate recursive closure in arrayprint.py (backport…
#10630: REL: Prepare for 1.14.1 release.