diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2019-07-28 14:38:21 -0700 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2019-07-28 14:38:45 -0700 |
commit | 75016bde471adf1db59e69a604cf8c2e8ae50864 (patch) | |
tree | f44972e84620b45e9dae69e685df221322b8dd0e | |
parent | 84e841281361bc708ad9b413433ebb2524d710af (diff) | |
download | numpy-75016bde471adf1db59e69a604cf8c2e8ae50864.tar.gz |
BUG: Remove stray print that causes a SystemError on python 3.7 due to an exception being in flight
We shouldn't be reporting errors via print anyway
Related to gh-14142
-rw-r--r-- | numpy/core/src/multiarray/descriptor.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/numpy/core/src/multiarray/descriptor.c b/numpy/core/src/multiarray/descriptor.c index ff85c3fcb..4d22c9ee7 100644 --- a/numpy/core/src/multiarray/descriptor.c +++ b/numpy/core/src/multiarray/descriptor.c @@ -497,9 +497,6 @@ _convert_from_array_descr(PyObject *obj, int align) else { ret = PyArray_DescrConverter(PyTuple_GET_ITEM(item, 1), &conv); } - if (ret == NPY_FAIL) { - PyObject_Print(PyTuple_GET_ITEM(item, 1), stderr, 0); - } } else if (PyTuple_GET_SIZE(item) == 3) { newobj = PyTuple_GetSlice(item, 1, 3); @@ -517,6 +514,7 @@ _convert_from_array_descr(PyObject *obj, int align) if (ret == NPY_FAIL) { goto fail; } + if ((PyDict_GetItem(fields, name) != NULL) || (title && PyBaseString_Check(title) |