-
-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Merged
Merged
1.10 deprecated removal #5990
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
5b8ec89
DEP,MAINT: Remove deprecated functions from npy_3kcompat.h
charris f686192
DEP,MAINT: Raise IndexError if axis != 0 when concatenating 1-D arrays.
charris 505b0f4
MAINT: Mark deprecation warning with a date and Numpy version.
charris 81788b4
BUG: Fix wrong deprecation message for logical unary '-' operator.
charris 16f1622
DEP,MAINT: Remove deprecated splitcmdline.
charris 3ed8030
DEP,MAINT: Remove try_run and get_output.
charris e1693d4
DEP,MAINT: Remove support for a._format array printing.
charris e22ae74
MAINT: Rearrange 1.10-notes a bit.
charris a27f560
DEP: Add notes to some deprecations.
charris File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
MAINT: Mark deprecation warning with a date and Numpy version.
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.
- Loading branch information
commit 505b0f4c11acb1ade1e91f1360ffa6a33cbd0b51
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
3E8D
|
@@ -784,6 +784,7 @@ PyArray_PyIntAsIntp_ErrMsg(PyObject *o, const char * msg) | |
|
|
||
| /* Be a bit stricter and not allow bools, np.bool_ is handled later */ | ||
| if (PyBool_Check(o)) { | ||
| /* 2013-04-13, 1.8 */ | ||
| if (DEPRECATE("using a boolean instead of an integer" | ||
| " will result in an error in the future") < 0) { | ||
| return -1; | ||
|
|
@@ -817,6 +818,7 @@ PyArray_PyIntAsIntp_ErrMsg(PyObject *o, const char * msg) | |
|
|
||
| /* Disallow numpy.bool_. Boolean arrays do not currently support index. */ | ||
| if (PyArray_IsScalar(o, Bool)) { | ||
| /* 2013-06-09, 1.8 */ | ||
| if (DEPRECATE("using a boolean instead of an integer" | ||
| " will result in an error in the future") < 0) { | ||
| return -1; | ||
|
|
@@ -884,6 +886,7 @@ PyArray_PyIntAsIntp_ErrMsg(PyObject *o, const char * msg) | |
| } | ||
| /* Give a deprecation warning, unless there was already an error */ | ||
| if (!error_converting(long_value)) { | ||
| /* 2013-04-13, 1.8 */ | ||
| if (DEPRECATE("using a non-integer number instead of an integer" | ||
| " will result in an error in the future") < 0) { | ||
| return -1; | ||
|
|
@@ -1139,6 +1142,7 @@ PyArray_TypestrConvert(int itemsize, int gentype) | |
| if (itemsize == 4 || itemsize == 8) { | ||
| int ret = 0; | ||
| if (evil_global_disable_warn_O4O8_flag) { | ||
| /* 2012-02-04, 1.7, not sure when this can be removed */ | ||
| ret = DEPRECATE("DType strings 'O4' and 'O8' are " | ||
| "deprecated because they are platform " | ||
| "specific. Use 'O' instead"); | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.