From 63dd79ac047c6a1d312261470f8eabc97210b42d Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 16 Aug 2002 02:24:56 +0000 Subject: Add warning for None used as keyword argument name in function call. Still to do: function definition arguments (including *None and **None). --- Python/compile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Python/compile.c b/Python/compile.c index 41d31d2..0edbc52 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) -- cgit v0.12