-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
MAINT: expire deprecations #28254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MAINT: expire deprecations #28254
Conversation
The benchmarks were using deprecated |
Very nice, thanks! Have to look through once more, but these all seem straight forward. The C ones seem potentially higher noise. I think that is acceptable, but maybe we should duplicate a slightly longer release note in the
Hmmm, we go via the |
There is still a reference to |
CI is passing |
I'll address the remaining stub changes in a follow-up PR |
Thanks Matti. Let's get this in and see how it shakes out. |
These were deprecated in np1.7 and will be removed in np2.3 (currently removed on numpy main branch). xref numpy/numpy#28254
These were deprecated in np1.7 and will be removed in np2.3 (currently removed on numpy main branch). xref numpy/numpy#28254
This will be the release note once I have a PR number
NPY_OWNDATA
from cython interfaces in favor ofNPY_ARRAY_OWNDATA
(deprecated since 1.7)numpy/npy_1_7_deprecated_api.h
and C macros likeNPY_OWNDATA
in favor ofNPY_ARRAY_OWNDATA
(deprecated since 1.7)generate_divbyzero_error
tonpy_set_floatstatus_divbyzero
andgenerate_overflow_error
tonpy_set_floatstatus_overflow
(deprecated since 1.10)np.tostring
(deprecated since 1.19)np.conjugate
of non-numeric types (deprecated since 1.13)np.bincount(...minlength=None)
, use 0 intead (deprecated since 1.14)shape=None
to functions with a non-optional shape argument raises, use()
instead (deprecated since 1.20)mode
andsearchside
raise (deprecated since 1.20)__array_finalize__ = None
raises (deprecated since 1.23)np.fromfile
andnp.fromstring
error on bad data, previously they would guess (deprecated since 1.18)datetime64
andtimedelta64
construction with a tuple no longer accepts anevent
value, either use a two-tuple of (unit, num) or a 4-tuple of (unit, num, den, 1) (deprecated since 1.14)dtype
from a class with adtype
attribute, that attribute must be a dtype-instance rather than a thing that can be parsed as a dtype instance (deprecated in 1.19). At some point the whole construct of using a dtype attribute will be deprecated (see DEP: Deprecate constructing dtypes from any object having a .dtype attribute #25306)np.tostring
has been removed, use `tobytes instead (deprecated since 1.19)concatenate()
withaxis=None
usessame-kind
casting by default, notunsafe
(deprecated since 1.20)fromstring
now raises, usefrombuffer
instead (deprecated since 1.14)np.inexact
ornp.floating
to a dtype errors (deprecated since 1.19)np.complex
,np.integer
, np.signedinteger,
np.unsignedinteger,
np.genericto a dtype raises, it used to convert to
complex128` (deprecated since 1.19)round
errors for complex scalars. Usenp.round
orscalar.round
instead (deprecated since 1.19)converters=float
keyword argument.np.loadtxt(...).astype(np.int64)
signature
errors. Usedtype
or fill the tuple withNone
(deprecated since 1.19)matrix.A
(deprecated since 1.20)