diff options
Diffstat (limited to 'numpy')
| -rw-r--r-- | numpy/core/src/multiarray/ctors.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/numpy/core/src/multiarray/ctors.c b/numpy/core/src/multiarray/ctors.c index 1ff26a311..2170a9a99 100644 --- a/numpy/core/src/multiarray/ctors.c +++ b/numpy/core/src/multiarray/ctors.c @@ -1872,17 +1872,7 @@ PyArray_CheckFromAny(PyObject *op, PyArray_Descr *descr, int min_depth, if ((requires & NPY_ARRAY_ELEMENTSTRIDES) && !PyArray_ElementStrides(obj)) { - // Testing if this code can be ever hit by existing tests - PyErr_SetString(PyExc_RuntimeError, "Not Implemented"); - // PyObject *ret; - // if( requires & NPY_ARRAY_ENSURENOCOPY ) { - // PyErr_SetString(PyExc_ValueError, - // "Unable to avoid copy while creating a new array."); - // return NULL; - // } - // ret = PyArray_NewCopy((PyArrayObject *)obj, NPY_ANYORDER); - // Py_DECREF(obj); - // obj = ret; + PyErr_SetString(PyExc_RuntimeError, "Not Implemented."); } return obj; } |
