[Python-checkins] python/nondist/sandbox/ast asdl.py,1.5,1.6
bckfnn@sourceforge.net
bckfnn@sourceforge.net
2002年4月13日 06:21:26 -0700
Update of /cvsroot/python/python/nondist/sandbox/ast
In directory usw-pr-cvs1:/tmp/cvs-serv19524
Modified Files:
asdl.py
Log Message:
Put the fields of a product in the right order. This matches what is done
for a Constructor.
Index: asdl.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/ast/asdl.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** asdl.py 10 Apr 2002 03:48:25 -0000 1.5
--- asdl.py 13 Apr 2002 13:21:23 -0000 1.6
***************
*** 142,145 ****
--- 142,147 ----
def p_product(self, (_0, fields, _1)):
" product ::= ( fields ) "
+ # XXX can't I just construct things in the right order?
+ fields.reverse()
return Product(fields)