diff options
author | mattip <matti.picus@gmail.com> | 2018-12-13 21:27:18 +0200 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2018-12-14 07:20:01 +0200 |
commit | ff32c7fc0c5b4d1029ece9655fb40fd8bde18b5a (patch) | |
tree | 4403404d5f1b3c0ee9b129f9613a7cee20760b04 /numpy/core | |
parent | b51315671167b3cd611399892b7ae0143781fecf (diff) | |
download | numpy-ff32c7fc0c5b4d1029ece9655fb40fd8bde18b5a.tar.gz |
MAINT: unify error messages
Diffstat (limited to 'numpy/core')
-rw-r--r-- | numpy/core/src/common/ufunc_override.c | 2 | ||||
-rw-r--r-- | numpy/core/src/multiarray/methods.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/src/common/ufunc_override.c b/numpy/core/src/common/ufunc_override.c index e1aae8ea6..21da62abb 100644 --- a/numpy/core/src/common/ufunc_override.c +++ b/numpy/core/src/common/ufunc_override.c @@ -97,7 +97,7 @@ PyUFuncOverride_GetOutObjects(PyObject *kwds, PyObject **out_kwd_obj, PyObject * * The C-API recommends calling PySequence_Fast before any of the other * PySequence_Fast* functions. This is required for PyPy */ - PyObject *seq = PySequence_Fast(*out_kwd_obj, "cannot convert"); + PyObject *seq = PySequence_Fast(*out_kwd_obj, "Could not convert object to sequence"); int ret; if (seq == NULL) { return -1; diff --git a/numpy/core/src/multiarray/methods.c b/numpy/core/src/multiarray/methods.c index be66cc24f..f52b7fb8b 100644 --- a/numpy/core/src/multiarray/methods.c +++ b/numpy/core/src/multiarray/methods.c @@ -1011,7 +1011,7 @@ any_array_ufunc_overrides(PyObject *args, PyObject *kwds) if (nin < 0) { return -1; } - fast = PySequence_Fast(args, "could not convert args for fast access"); + fast = PySequence_Fast(args, "Could not convert object to sequence"); if (fast == NULL) { return -1; } |