The NumPy 1.23.0 release continues the ongoing work to improve the
handling and promotion of dtypes, increase the execution speed, clarify
the documentation, and expire old deprecations. The highlights are:
Implementation of loadtxt in C, greatly improving its performance.
Exposing DLPack at the Python level for easy data exchange.
Changes to the promotion and comparisons of structured dtypes.
Improvements to f2py.
See below for the details,
New functions
A masked array specialization of ndenumerate is now available as
numpy.ma.ndenumerate. It provides an alternative to
numpy.ndenumerate and skips masked values by default.
numpy.from_dlpack has been added to allow easy exchange of data
using the DLPack protocol. It accepts Python objects that implement
the __dlpack__ and __dlpack_device__ methods and returns a
ndarray object which is generally the view of the data of the input
object.
Setting __array_finalize__ to None is deprecated. It must now be
a method and may wish to call super().__array_finalize__(obj)
after checking for None or if the NumPy version is sufficiently
new.
The hook function PyDataMem_SetEventHook has been deprecated and
the demonstration of its use in tool/allocation_tracking has been
removed. The ability to track allocations is now built-in to python
via tracemalloc.
... (truncated)
Commits
54c52f1 Merge pull request #21825 from charris/prepare-for-1.23.0-2
3676325 REL: Prepare for the NumPy 1.23.0 release (2)
5773033 Merge pull request #21824 from charris/test-anaconda-uploading
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Updates the requirements on numpy to permit the latest version.
Release notes
Sourced from numpy's releases.
... (truncated)
Commits
54c52f1
Merge pull request #21825 from charris/prepare-for-1.23.0-23676325
REL: Prepare for the NumPy 1.23.0 release (2)5773033
Merge pull request #21824 from charris/test-anaconda-uploading3e6ea37
MAINT: Try fixing broken Anaconda uploads.e12270a
Merge pull request #21811 from charris/prepare-for-1.23.06da3cd7
REL: Prepare for the NumPy 1.23.0 releasee6a2125
Merge pull request #21810 from charris/backport-21794e54b11b
Merge pull request #21809 from charris/backport-21771552bad6
BUG: lib: A loadtxt error message had two values reversed.0f2c736
MAINT: Add a check of the return value of PyMem_Calloc().Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)