Author: mattip
Branch: numpypy-axisops
Changeset: r50915:cd8f7d57fe3e
Date: 2011-12-27 08:12 +0200
http://bitbucket.org/pypy/pypy/changeset/cd8f7d57fe3e/

Log:    why do default args cause problems?

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
@@ -90,11 +90,13 @@
             allnumbers.append(no)
         self.iter_no = no
 
-    def create_frame(self, arr, res_shape=None, chunks = []):
+    def create_frame(self, arr, res_shape=None):
+    #def create_frame(self, arr, res_shape=None, chunks = []):
         res_shape = res_shape or arr.shape
         iterlist = []
         arraylist = []
-        self._create_iter(iterlist, arraylist, arr, res_shape, chunks)
+        #self._create_iter(iterlist, arraylist, arr, res_shape, chunks)
+        self._create_iter(iterlist, arraylist, arr, res_shape, [])
         return NumpyEvalFrame(iterlist, arraylist)
 
 class ConcreteSignature(Signature):
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to