[pypy-commit] pypy numpypy-axisops: (Alex_Gaynor) fix incorrect default function values
mattip
noreply at buildbot.pypy.org
Fri Dec 30 13:51:47 CET 2011
Author: mattip
Branch: numpypy-axisops
Changeset: r50952:ece8d1b61ecb
Date: 2011-12-30 08:38 +0200
http://bitbucket.org/pypy/pypy/changeset/ece8d1b61ecb/
Log: (Alex_Gaynor) fix incorrect default function values
diff --git a/pypy/module/micronumpy/signature.py b/pypy/module/micronumpy/signature.py
--- a/pypy/module/micronumpy/signature.py
+++ b/pypy/module/micronumpy/signature.py
@@ -95,7 +95,9 @@
allnumbers.append(no)
self.iter_no = no
- def create_frame(self, arr, res_shape=None, chunks = []):
+ def create_frame(self, arr, res_shape=None, chunks = None):
+ if chunks is None:
+ chunks = []
res_shape = res_shape or arr.shape
iterlist = []
arraylist = []
More information about the pypy-commit
mailing list