[Python-checkins] python/dist/src/Python compile.c,2.260,2.261

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
2002年8月15日 19:24:59 -0700


Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv14977
Modified Files:
	compile.c 
Log Message:
Add warning for None used as keyword argument name in function call.
Still to do: function definition arguments (including *None and
**None).
Index: compile.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/compile.c,v
retrieving revision 2.260
retrieving revision 2.261
diff -C2 -d -r2.260 -r2.261
*** compile.c	16 Aug 2002 02:13:49 -0000	2.260
--- compile.c	16 Aug 2002 02:24:56 -0000	2.261
***************
*** 1715,1718 ****
--- 1715,1719 ----
 	else {
 		PyObject *v = PyString_InternFromString(STR(m));
+ 		(void) none_assignment_check(c, STR(m), 1);
 		if (v != NULL && *pkeywords == NULL)
 			*pkeywords = PyDict_New();

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