projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ac99d4
)
Add warning for None used as keyword argument name in function call.
author
Guido van Rossum
<guido@python.org>
Fri, 16 Aug 2002 02:24:56 +0000
(
02:24
+0000)
committer
Guido van Rossum
<guido@python.org>
Fri, 16 Aug 2002 02:24:56 +0000
(
02:24
+0000)
Still to do: function definition arguments (including *None and
**None).
Python/compile.c
patch
|
blob
|
history
diff --git
a/Python/compile.c
b/Python/compile.c
index 41d31d212c457e787e56e530e99bdeeba3de1895..0edbc528d3d0be7b4ebbf19d771c10746a45a70c 100644
(file)
--- 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)