summaryrefslogtreecommitdiff
path: root/numpy/lib/ufunclike.py
diff options
context:
space:
mode:
authorStephan Hoyer <shoyer@google.com>2019-01-22 14:07:47 -0800
committerStephan Hoyer <shoyer@google.com>2019-01-22 14:13:39 -0800
commit96d179ce5bd0e3f75508f6afdfb2fb65170cc83c (patch)
treeeda5cca68be758029c47c10252d7a59189935c3f /numpy/lib/ufunclike.py
parent3cbc11ac56054ad3ac7461e57433aefe37f2e3e4 (diff)
downloadnumpy-96d179ce5bd0e3f75508f6afdfb2fb65170cc83c.tar.gz
ENH: __array_function__ updates for NumPy 1.17.0
- Always enable __array_function__ overrides. - Remove special cases for Python 2 compatibility. - Document these changes in 1.17.0-notes.rst. It will be good to see ASV numbers to understand the performance implications of these changes. If need be, we can speed up NumPy functions internally by using non-dispatched functions (with ``.__wrapped__``).
Diffstat (limited to 'numpy/lib/ufunclike.py')
-rw-r--r--numpy/lib/ufunclike.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/numpy/lib/ufunclike.py b/numpy/lib/ufunclike.py
index 5c411e8c8..8452604d9 100644
--- a/numpy/lib/ufunclike.py
+++ b/numpy/lib/ufunclike.py
@@ -8,7 +8,7 @@ from __future__ import division, absolute_import, print_function
__all__ = ['fix', 'isneginf', 'isposinf']
import numpy.core.numeric as nx
-from numpy.core.overrides import array_function_dispatch, ENABLE_ARRAY_FUNCTION
+from numpy.core.overrides import array_function_dispatch
import warnings
import functools
@@ -55,10 +55,6 @@ def _fix_out_named_y(f):
return func
-if not ENABLE_ARRAY_FUNCTION:
- _fix_out_named_y = _deprecate_out_named_y
-
-
@_deprecate_out_named_y
def _dispatcher(x, out=None):
return (x, out)