[Python-checkins] python/dist/src/Tools/compiler astgen.py, 1.6.14.1, 1.6.14.2
jhylton@users.sourceforge.net
jhylton at users.sourceforge.net
Sun Oct 16 07:24:09 CEST 2005
- Previous message: [Python-checkins] python/dist/src/PCbuild BUILDno.txt, 1.38.2.2, 1.38.2.3 pcbuild.sln, 1.5.4.1, 1.5.4.2 pythoncore.vcproj, 1.26.2.2, 1.26.2.3 readme.txt, 1.23.2.2, 1.23.2.3 zlib.vcproj, 1.6.6.1, 1.6.6.2
- Next message: [Python-checkins] python/dist/src/Tools/i18n makelocalealias.py, 1.2.2.1, 1.2.2.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Tools/compiler
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27718/Tools/compiler
Modified Files:
Tag: ast-branch
astgen.py
Log Message:
Merge head to branch (for the last time)
Index: astgen.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/compiler/astgen.py,v
retrieving revision 1.6.14.1
retrieving revision 1.6.14.2
diff -u -d -r1.6.14.1 -r1.6.14.2
--- astgen.py 7 Jan 2005 07:05:06 -0000 1.6.14.1
+++ astgen.py 16 Oct 2005 05:24:06 -0000 1.6.14.2
@@ -234,9 +234,9 @@
"""
from consts import CO_VARARGS, CO_VARKEYWORDS
-def flatten(list):
+def flatten(seq):
l = []
- for elt in list:
+ for elt in seq:
t = type(elt)
if t is tuple or t is list:
for elt2 in flatten(elt):
@@ -245,8 +245,8 @@
l.append(elt)
return l
-def flatten_nodes(list):
- return [n for n in flatten(list) if isinstance(n, Node)]
+def flatten_nodes(seq):
+ return [n for n in flatten(seq) if isinstance(n, Node)]
nodes = {}
- Previous message: [Python-checkins] python/dist/src/PCbuild BUILDno.txt, 1.38.2.2, 1.38.2.3 pcbuild.sln, 1.5.4.1, 1.5.4.2 pythoncore.vcproj, 1.26.2.2, 1.26.2.3 readme.txt, 1.23.2.2, 1.23.2.3 zlib.vcproj, 1.6.6.1, 1.6.6.2
- Next message: [Python-checkins] python/dist/src/Tools/i18n makelocalealias.py, 1.2.2.1, 1.2.2.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Python-checkins
mailing list