diff options
| author | Ralf Gommers <ralf.gommers@gmail.com> | 2023-03-12 22:01:22 +0000 |
|---|---|---|
| committer | Ralf Gommers <ralf.gommers@gmail.com> | 2023-03-12 22:31:28 +0000 |
| commit | 1da1663196c95b3811ca84d9e335f32cfeb05e32 (patch) | |
| tree | e6d432a66dd5c16051a4e1a400567b100200639a /numpy/lib/shape_base.py | |
| parent | ac6233b03df6562453ebda984f565f603e726710 (diff) | |
| download | numpy-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/lib/shape_base.py')
| -rw-r--r-- | numpy/lib/shape_base.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/numpy/lib/shape_base.py b/numpy/lib/shape_base.py index 154faa1dd..5d8a41bfe 100644 --- a/numpy/lib/shape_base.py +++ b/numpy/lib/shape_base.py @@ -643,10 +643,6 @@ def column_stack(tup): [3, 4]]) """ - if not overrides.ARRAY_FUNCTION_ENABLED: - # reject non-sequences (and make tuple) - tup = _arrays_for_stack_dispatcher(tup) - arrays = [] for v in tup: arr = asanyarray(v) @@ -713,10 +709,6 @@ def dstack(tup): [[3, 4]]]) """ - if not overrides.ARRAY_FUNCTION_ENABLED: - # reject non-sequences (and make tuple) - tup = _arrays_for_stack_dispatcher(tup) - arrs = atleast_3d(*tup) if not isinstance(arrs, list): arrs = [arrs] |
