summaryrefslogtreecommitdiff
path: root/numpy/lib/stride_tricks.py
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2017-02-13 21:17:23 +0000
committerEric Wieser <wieser.eric@gmail.com>2017-02-13 22:50:24 +0000
commitd9b26f804117ebc1f591dff33d06ce2339af9339 (patch)
treeff17a3b1c6872819d7fb90786fccaf137c583fec /numpy/lib/stride_tricks.py
parentd932fcd38d9ef0f76c988d6c197856fa0c71314b (diff)
downloadnumpy-d9b26f804117ebc1f591dff33d06ce2339af9339.tar.gz
BUG: The broadcast shape of no things should be (), not ValueError
Diffstat (limited to 'numpy/lib/stride_tricks.py')
-rw-r--r--numpy/lib/stride_tricks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/stride_tricks.py b/numpy/lib/stride_tricks.py
index f390cf49b..545623c38 100644
--- a/numpy/lib/stride_tricks.py
+++ b/numpy/lib/stride_tricks.py
@@ -179,7 +179,7 @@ def _broadcast_shape(*args):
supplied arrays against each other.
"""
if not args:
- raise ValueError('must provide at least one argument')
+ return ()
# use the old-iterator because np.nditer does not handle size 0 arrays
# consistently
b = np.broadcast(*args[:32])