[pypy-svn] r14918 - in pypy/dist/pypy/interpreter: astcompiler stablecompiler
adim at codespeak.net
adim at codespeak.net
Fri Jul 22 16:53:54 CEST 2005
Author: adim
Date: Fri Jul 22 16:53:52 2005
New Revision: 14918
Modified:
pypy/dist/pypy/interpreter/astcompiler/transformer.py
pypy/dist/pypy/interpreter/stablecompiler/transformer.py
Log:
Use empty lists instead of empty tuples (to avoid having lists when
non empty and tuples when empty)
Modified: pypy/dist/pypy/interpreter/astcompiler/transformer.py
==============================================================================
--- pypy/dist/pypy/interpreter/astcompiler/transformer.py (original)
+++ pypy/dist/pypy/interpreter/astcompiler/transformer.py Fri Jul 22 16:53:52 2005
@@ -273,7 +273,8 @@
if nodelist[2][0] == symbol.varargslist:
names, defaults, flags = self.com_arglist(nodelist[2][1:])
else:
- names = defaults = ()
+ names = []
+ defaults = []
flags = 0
# code for lambda
Modified: pypy/dist/pypy/interpreter/stablecompiler/transformer.py
==============================================================================
--- pypy/dist/pypy/interpreter/stablecompiler/transformer.py (original)
+++ pypy/dist/pypy/interpreter/stablecompiler/transformer.py Fri Jul 22 16:53:52 2005
@@ -272,7 +272,8 @@
if nodelist[2][0] == symbol.varargslist:
names, defaults, flags = self.com_arglist(nodelist[2][1:])
else:
- names = defaults = ()
+ names = []
+ defaults = []
flags = 0
# code for lambda
@@ -777,7 +778,6 @@
names = []
defaults = []
flags = 0
-
i = 0
while i < len(nodelist):
node = nodelist[i]
More information about the Pypy-commit
mailing list