From: Guido van Rossum Date: Fri, 16 Aug 2002 02:24:56 +0000 (+0000) Subject: Add warning for None used as keyword argument name in function call. X-Git-Tag: v2.3c1~4440 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=63dd79ac047c6a1d312261470f8eabc97210b42d;p=thirdparty%2FPython%2Fcpython.git Add warning for None used as keyword argument name in function call. Still to do: function definition arguments (including *None and **None). --- diff --git a/Python/compile.c b/Python/compile.c index 41d31d212c45..0edbc528d3d0 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -1714,6 +1714,7 @@ com_argument(struct compiling *c, node *n, PyObject **pkeywords) } else { PyObject *v = PyString_InternFromString(STR(m)); + (void) none_assignment_check(c, STR(m), 1); if (v != NULL && *pkeywords == NULL) *pkeywords = PyDict_New(); if (v == NULL)