diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2019-10-16 08:33:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-16 08:33:34 -0700 |
commit | 1185880f153c5bbc2081a17121617beb588cfb1f (patch) | |
tree | e0d195328dd2ba24425951b9bacb1a45ed0cec1b /numpy/core/src | |
parent | 27c143c15da262fe2d233c0c310a184af21a8ff3 (diff) | |
parent | d2aeb397c192c3b1a3efee8e031a1af6e95da18d (diff) | |
download | numpy-1185880f153c5bbc2081a17121617beb588cfb1f.tar.gz |
Merge pull request #14725 from WarrenWeckesser/boolsubnotsupported
MAINT: umath: Change error message for unsupported bool subtraction.
Diffstat (limited to 'numpy/core/src')
-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; |