Skip to content

Commit b5a56d6

Browse files
committed
Merge pull request numpy#4925 from juliantaylor/ufunc-disable2
MAINT: also disable has_ufunc_attr
2 parents 9cd9c6c + 3b89488 commit b5a56d6

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)