-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
1.10 deprecated removal #5990
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
1.10 deprecated removal #5990
Conversation
The first commit may break older versions of SciPy, although Scipy currently does not use the Numpy version anywhere. |
0301562
to
6318c68
Compare
That's all folks. |
@@ -384,6 +384,7 @@ PyUFunc_NegativeTypeResolver(PyUFuncObject *ufunc, | |||
|
|||
/* The type resolver would have upcast already */ | |||
if (out_dtypes[0]->type_num == NPY_BOOL) { | |||
/* 2013-12-05, 1.9 */ | |||
if (DEPRECATE("numpy boolean negative (the unary `-` operator) is " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not your job, but just noticed that there is a copy paste error here, The message should ask to use ~
I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, will fix.
16c3502
to
20860e6
Compare
These functions npy_PyFile_Dup and npy_PyFile_DupClose do not work correctly in Python 3. Deprecation messages have been raised in npy_PyFile_Dup since 1.9 and it is probably best to smoke out any remaining uses by simply removing the function.
This was deprecated in NumPy 1.7 with a warning that it would raise an error in the future. Tests for the new error are added and the test that allowed that special case is removed.
This is to make it easier to find and remove deprecated features. It would be a good idea if all deprecations were made with similar comments.
20860e6
to
2205136
Compare
OK, fixed the quibbles and removed the last two risky deprecation removals for a separate PR. |
Was in numpy/distutils/exec_command.py. Update 1.10-notes.rst.
Deprecated functions in numpy/distutils/command/config.py.
Deprecated, removed from numpy/core/arrayprint.py.
Some keywords are deprecated and slated for removal in numpy 2.0. Add comment to deprecation date to clarify that.
2205136
to
a27f560
Compare
Remove some deprecated bits and mark all Deprecations with a date and Numpy version for further action.
This PR is not finished yet, but need review anyway ;)
One question is what to do with deprecated C-API functions, of which there are four. We can't remove them, but perhaps we should return an error. Thoughts?