[Python-checkins] python/dist/src/Parser Python.asdl, 1.1.2.10,
1.1.2.11 asdl_c.py, 1.1.2.6, 1.1.2.7
bcannon at users.sourceforge.net
bcannon at users.sourceforge.net
Wed Apr 13 21:59:24 CEST 2005
Update of /cvsroot/python/python/dist/src/Parser
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23001/Parser
Modified Files:
Tag: ast-branch
Python.asdl asdl_c.py
Log Message:
Last part of checkin to change over from the name "GeneratorComp" to
"GeneratorExp".
Index: Python.asdl
===================================================================
RCS file: /cvsroot/python/python/dist/src/Parser/Attic/Python.asdl,v
retrieving revision 1.1.2.10
retrieving revision 1.1.2.11
diff -u -d -r1.1.2.10 -r1.1.2.11
--- Python.asdl 12 Apr 2005 23:19:54 -0000 1.1.2.10
+++ Python.asdl 13 Apr 2005 19:59:20 -0000 1.1.2.11
@@ -54,7 +54,7 @@
| Lambda(arguments args, expr body)
| Dict(expr* keys, expr* values)
| ListComp(expr elt, comprehension* generators)
- | GeneratorComp(expr elt, comprehension* generators)
+ | GeneratorExp(expr elt, comprehension* generators)
-- need sequences for compare to distinguish between
-- x < 4 < 3 and (x < 4) < 3
| Compare(expr left, cmpop* ops, expr* comparators)
Index: asdl_c.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Parser/Attic/asdl_c.py,v
retrieving revision 1.1.2.6
retrieving revision 1.1.2.7
diff -u -d -r1.1.2.6 -r1.1.2.7
--- asdl_c.py 2 Apr 2005 18:50:05 -0000 1.1.2.6
+++ asdl_c.py 13 Apr 2005 19:59:20 -0000 1.1.2.7
@@ -45,7 +45,7 @@
while len(cur) > size:
i = cur.rfind(' ', 0, size)
# XXX this should be fixed for real
- if i == -1 and 'GeneratorComp' in cur:
+ if i == -1 and 'GeneratorExp' in cur:
i = size + 3
assert i != -1, "Impossible line %d to reflow: %s" % (size, `s`)
lines.append(padding + cur[:i])
More information about the Python-checkins
mailing list