From 9a740b4fc4b39e6a65c81903381a5aa7eb300495 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Thu, 13 Nov 2008 10:10:13 -0500 Subject: [PATCH] Fix indices_in_shape(). --- src/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/__init__.py b/src/__init__.py index 312a43a..e4799d9 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -725,7 +725,8 @@ def indices_in_shape(shape): else: remainder = shape[1:] for i in xrange(0, shape[0]): - yield (i,)+indices_in_shape(remainder) + for rest in indices_in_shape(remainder): + yield (i,)+rest -- GitLab