From d9b26f804117ebc1f591dff33d06ce2339af9339 Mon Sep 17 00:00:00 2001 From: Eric Wieser Date: Mon, 13 Feb 2017 21:17:23 +0000 Subject: BUG: The broadcast shape of no things should be (), not ValueError --- numpy/lib/stride_tricks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/lib/stride_tricks.py') 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]) -- cgit v1.2.1