Skip to content

Commit

Permalink
Update numpy/core/src/multiarray/descriptor.c
Browse files Browse the repository at this point in the history
Co-Authored-By: Eric Wieser <[email protected]>
  • Loading branch information
ericmariasis and eric-wieser authored Feb 1, 2020
1 parent 2a75fa5 commit dfb2d34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numpy/core/src/multiarray/descriptor.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ _convert_from_array_descr(PyObject *obj, int align)
for (int i = 0; i < n; i++) {
PyObject *item = PyList_GET_ITEM(obj, i);
if (!PyTuple_Check(item) || (PyTuple_GET_SIZE(item) < 2)) {
PyErr_Format(PyExc_TypeError, "Field elements must be 2-tuples, got %R", item);
PyErr_Format(PyExc_TypeError, "Field elements must be 2- or 3-tuples, got %R", item);
goto fail;
}
PyObject *name = PyTuple_GET_ITEM(item, 0);
Expand Down

0 comments on commit dfb2d34

Please sign in to comment.