[pypy-svn] r15773 - in pypy/dist/pypy/interpreter: astcompiler stablecompiler

adim at codespeak.net adim at codespeak.net
Mon Aug 8 16:51:47 CEST 2005


Author: adim
Date: Mon Aug  8 16:51:44 2005
New Revision: 15773

Modified:
   pypy/dist/pypy/interpreter/astcompiler/transformer.py
   pypy/dist/pypy/interpreter/stablecompiler/transformer.py
Log:
use empty lists instead of emtpy tuples for arglist

Modified: pypy/dist/pypy/interpreter/astcompiler/transformer.py
==============================================================================
--- pypy/dist/pypy/interpreter/astcompiler/transformer.py	(original)
+++ pypy/dist/pypy/interpreter/astcompiler/transformer.py	Mon Aug  8 16:51:44 2005
@@ -254,7 +254,8 @@
         if args[0] == symbol.varargslist:
             names, defaults, flags = self.com_arglist(args[1:])
         else:
-            names = defaults = ()
+            names = []
+            defaults = []
             flags = 0
         doc = self.get_docstring(nodelist[-1])
 

Modified: pypy/dist/pypy/interpreter/stablecompiler/transformer.py
==============================================================================
--- pypy/dist/pypy/interpreter/stablecompiler/transformer.py	(original)
+++ pypy/dist/pypy/interpreter/stablecompiler/transformer.py	Mon Aug  8 16:51:44 2005
@@ -253,7 +253,8 @@
         if args[0] == symbol.varargslist:
             names, defaults, flags = self.com_arglist(args[1:])
         else:
-            names = defaults = ()
+            names = []
+            defaults = []
             flags = 0
         doc = self.get_docstring(nodelist[-1])
 
@@ -702,7 +703,7 @@
 
     def atom_lsqb(self, nodelist):
         if nodelist[1][0] == token.RSQB:
-            return List(())
+            return List([])
         return self.com_list_constructor(nodelist[1])
 
     def atom_lbrace(self, nodelist):



More information about the Pypy-commit mailing list