Commit 63dd79ac authored by Guido van Rossum's avatar Guido van Rossum

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

Still to do: function definition arguments (including *None and
**None).
parent 3ac99d49
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment