diff options
author | Guido van Rossum <guido@python.org> | 2002-08-16 02:24:56 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-08-16 02:24:56 (GMT) |
commit | 63dd79ac047c6a1d312261470f8eabc97210b42d (patch) | |
tree | 625f3d62d19646f6f7c80f3c7b94bd7800d7fa9c /Python/compile.c | |
parent | 3ac99d4910860d21251ac6d7e85550d4909b1fa9 (diff) | |
download | cpython-63dd79ac047c6a1d312261470f8eabc97210b42d.zip cpython-63dd79ac047c6a1d312261470f8eabc97210b42d.tar.gz cpython-63dd79ac047c6a1d312261470f8eabc97210b42d.tar.bz2 |
Add warning for None used as keyword argument name in function call.
Still to do: function definition arguments (including *None and
**None).
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) |