From 450cb8c2d77a8becdeae30afd90d0ec743e6f3ec Mon Sep 17 00:00:00 2001 From: Holger Kohr Date: Wed, 30 Dec 2015 12:55:32 +0100 Subject: ENH: allow single input argument in numpy.broadcast --- numpy/lib/stride_tricks.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'numpy/lib/stride_tricks.py') diff --git a/numpy/lib/stride_tricks.py b/numpy/lib/stride_tricks.py index f4b43a5a9..4c23ab355 100644 --- a/numpy/lib/stride_tricks.py +++ b/numpy/lib/stride_tricks.py @@ -121,9 +121,6 @@ def _broadcast_shape(*args): """ if not args: raise ValueError('must provide at least one argument') - if len(args) == 1: - # a single argument does not work with np.broadcast - return np.asarray(args[0]).shape # use the old-iterator because np.nditer does not handle size 0 arrays # consistently b = np.broadcast(*args[:32]) -- cgit v1.2.1