8000 MAINT: also disable has_ufunc_attr · juliantaylor/numpy@3b89488 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3b89488

Browse files
committed
MAINT: also disable has_ufunc_attr
see numpygh-4920
1 parent 9cd9c6c commit 3b89488

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

numpy/core/src/multiarray/number.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ PyArray_SetNumericOps(PyObject *dict)
8888

8989
static int
9090
has_ufunc_attr(PyObject * obj) {
91+
/* ufunc override disabled for 1.9 */
92+
return 0;
9193
/* attribute check is expensive for scalar operations, avoid if possible */
9294
if (PyArray_CheckExact(obj) || _is_basic_python_type(obj)) {
9395
return 0;

0 commit comments

Comments
 (0)
0