8000 ENH: preserve subclasses in ufunc.outer · pentschev/numpy@e03249a · GitHub
[go: up one dir, main page]

Skip to content

Commit e03249a

Browse files
eric-wiesertylerjereddy
authored andcommitted
ENH: preserve subclasses in ufunc.outer
1 parent 4c97780 commit e03249a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numpy/core/src/umath/ufunc_object.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5428,7 +5428,7 @@ ufunc_outer(PyUFuncObject *ufunc, PyObject *args, PyObject *kwds)
54285428
if (tmp == NULL) {
54295429
return NULL;
54305430
}
5431-
ap1 = (PyArrayObject *) PyArray_FromObject(tmp, NPY_NOTYPE, 0, 0);
5431+
ap1 = (PyArrayObject *) PyArray_FROM_O(tmp);
54325432
Py_DECREF(tmp);
54335433
if (ap1 == NULL) {
54345434
return NULL;
@@ -5437,7 +5437,7 @@ ufunc_outer(PyUFuncObject *ufunc, PyObject *args, PyObject *kwds)
54375437
if (tmp == NULL) {
54385438
return NULL;
54395439
}
5440-
ap2 = (PyArrayObject *)PyArray_FromObject(tmp, NPY_NOTYPE, 0, 0);
5440+
ap2 = (PyArrayObject *) PyArray_FROM_O(tmp);
54415441
Py_DECREF(tmp);
54425442
if (ap2 == NULL) {
54435443
Py_DECREF(ap1);

0 commit comments

Comments
 (0)
0