mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
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:
parent
3ac99d4910
commit
63dd79ac04
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue