summaryrefslogtreecommitdiff
path: root/numpy/core/fromnumeric.py
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@gmail.com>2023-03-12 22:01:22 +0000
committerRalf Gommers <ralf.gommers@gmail.com>2023-03-12 22:31:28 +0000
commit1da1663196c95b3811ca84d9e335f32cfeb05e32 (patch)
treee6d432a66dd5c16051a4e1a400567b100200639a /numpy/core/fromnumeric.py
parentac6233b03df6562453ebda984f565f603e726710 (diff)
downloadnumpy-1da1663196c95b3811ca84d9e335f32cfeb05e32.tar.gz
MAINT: remove `NUMPY_EXPERIMENTAL_ARRAY_FUNCTION` env var
As discussed in https://mail.python.org/archives/list/numpy-discussion@python.org/thread/UKZJACAP5FUG7KP2AQDPE4P5ADNWLOHZ/ This flag was always meant to be temporary, and cleaning it up is long overdue.
Diffstat (limited to 'numpy/core/fromnumeric.py')
-rw-r--r--numpy/core/fromnumeric.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py
index 196ba5ea7..b36667427 100644
--- a/numpy/core/fromnumeric.py
+++ b/numpy/core/fromnumeric.py
@@ -3830,10 +3830,6 @@ def round_(a, decimals=0, out=None):
--------
around : equivalent function; see for details.
"""
- if not overrides.ARRAY_FUNCTION_ENABLED:
- # call dispatch helper explicitly, as it emits a deprecation warning
- _round__dispatcher(a, decimals=decimals, out=out)
-
return around(a, decimals=decimals, out=out)
@@ -3859,10 +3855,6 @@ def product(*args, **kwargs):
--------
prod : equivalent function; see for details.
"""
- if not overrides.ARRAY_FUNCTION_ENABLED:
- # call dispatch helper explicitly, as it emits a deprecation warning
- _product_dispatcher(*args, **kwargs)
-
return prod(*args, **kwargs)
@@ -3887,10 +3879,6 @@ def cumproduct(*args, **kwargs):
--------
cumprod : equivalent function; see for details.
"""
- if not overrides.ARRAY_FUNCTION_ENABLED:
- # call dispatch helper explicitly, as it emits a deprecation warning
- _cumproduct_dispatcher(*args, **kwargs)
-
return cumprod(*args, **kwargs)
@@ -3918,10 +3906,6 @@ def sometrue(*args, **kwargs):
--------
any : equivalent function; see for details.
"""
- if not overrides.ARRAY_FUNCTION_ENABLED:
- # call dispatch helper explicitly, as it emits a deprecation warning
- _sometrue_dispatcher(*args, **kwargs)
-
return any(*args, **kwargs)
@@ -3946,8 +3930,4 @@ def alltrue(*args, **kwargs):
--------
numpy.all : Equivalent function; see for details.
"""
- if not overrides.ARRAY_FUNCTION_ENABLED:
- # call dispatch helper explicitly, as it emits a deprecation warning
- _alltrue_dispatcher(*args, **kwargs)
-
return all(*args, **kwargs)