summaryrefslogtreecommitdiff
path: root/numpy/core/_methods.py
diff options
context:
space:
mode:
authorStephan Hoyer <shoyer@google.com>2018-12-19 10:48:10 -0800
committerStephan Hoyer <shoyer@google.com>2018-12-19 10:48:10 -0800
commit7104a3e9fe989f43f20765d740cf22dabae563d4 (patch)
treecde09169afa607600abd09d68989fe62a4f37ccf /numpy/core/_methods.py
parent45413455791c77465c5f33a5082053274eb18900 (diff)
downloadnumpy-7104a3e9fe989f43f20765d740cf22dabae563d4.tar.gz
ENH: port __array_function__ overrides to C
Diffstat (limited to 'numpy/core/_methods.py')
-rw-r--r--numpy/core/_methods.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/numpy/core/_methods.py b/numpy/core/_methods.py
index c6c163e16..33f6d01a8 100644
--- a/numpy/core/_methods.py
+++ b/numpy/core/_methods.py
@@ -154,15 +154,3 @@ def _ptp(a, axis=None, out=None, keepdims=False):
umr_minimum(a, axis, None, None, keepdims),
out
)
-
-_NDARRAY_ARRAY_FUNCTION = mu.ndarray.__array_function__
-
-def _array_function(self, func, types, args, kwargs):
- # TODO: rewrite this in C
- # Cannot handle items that have __array_function__ other than our own.
- for t in types:
- if not issubclass(t, mu.ndarray):
- return NotImplemented
-
- # The regular implementation can handle this, so we call it directly.
- return func.__wrapped__(*args, **kwargs)