Add warning for None used as keyword argument name in function call.

Still to do: function definition arguments (including *None and
**None).
This commit is contained in:
Guido van Rossum 2002-08-16 02:24:56 +00:00
parent 3ac99d4910
commit 63dd79ac04

View file

@ -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)