diff options
author | Warren Weckesser <warren.weckesser@gmail.com> | 2019-10-16 03:59:24 -0400 |
---|---|---|
committer | Warren Weckesser <warren.weckesser@gmail.com> | 2019-10-16 04:01:24 -0400 |
commit | d2aeb397c192c3b1a3efee8e031a1af6e95da18d (patch) | |
tree | e0d195328dd2ba24425951b9bacb1a45ed0cec1b /numpy | |
parent | 27c143c15da262fe2d233c0c310a184af21a8ff3 (diff) | |
download | numpy-d2aeb397c192c3b1a3efee8e031a1af6e95da18d.tar.gz |
MAINT: umath: Change error message for unsupported bool subtraction.
The error message that results when attempting to subtract bool arrays
is changed to say that the operation is "not supported", rather than
"is deprecated". This is now consistent with a similar error message
from the negative unary operator.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/src/umath/ufunc_type_resolution.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/umath/ufunc_type_resolution.c b/numpy/core/src/umath/ufunc_type_resolution.c index 9be7b63a0..f93d8229e 100644 --- a/numpy/core/src/umath/ufunc_type_resolution.c +++ b/numpy/core/src/umath/ufunc_type_resolution.c @@ -883,7 +883,7 @@ PyUFunc_SubtractionTypeResolver(PyUFuncObject *ufunc, /* The type resolver would have upcast already */ if (out_dtypes[0]->type_num == NPY_BOOL) { PyErr_Format(PyExc_TypeError, - "numpy boolean subtract, the `-` operator, is deprecated, " + "numpy boolean subtract, the `-` operator, is not supported, " "use the bitwise_xor, the `^` operator, or the logical_xor " "function instead."); return -1; |