[Python-checkins] python/dist/src/Python Python-ast.c,1.1.2.4,1.1.2.5

jhylton@users.sourceforge.net jhylton@users.sourceforge.net
2002年10月02日 04:48:46 -0700


Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv9163/Python
Modified Files:
 Tag: ast-branch
	Python-ast.c 
Log Message:
Experimental change: Add Param to expr_context.
It's convenient to represent a function's parameter list as a sequence
of expressions, because they can contain names or tuples. Rather than
re-using an existing expr_context for the names, make one explicitly
for this purpose.
There are some downsides: Must cover Param in all switch statements.
Param isn't used directly by the AST.
Index: Python-ast.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/Attic/Python-ast.c,v
retrieving revision 1.1.2.4
retrieving revision 1.1.2.5
diff -C2 -d -r1.1.2.4 -r1.1.2.5
*** Python-ast.c	3 Sep 2002 23:18:53 -0000	1.1.2.4
--- Python-ast.c	2 Oct 2002 11:48:44 -0000	1.1.2.5
***************
*** 1508,1511 ****
--- 1508,1514 ----
 marshal_write_int(buf, off, 4);
 break;
+ case Param:
+ marshal_write_int(buf, off, 5);
+ break;
 }
 return 1;

AltStyle によって変換されたページ (->オリジナル) /