summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-05-08 20:36:44 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-05-08 20:36:44 (GMT)
commitce41287e996351735ec1564bc1d701dd9057bdcf (patch)
tree6c405d106d2c5aa2f349ff70f9058af7680063c4 /Python
parenta26e4b97d82f408b18ea0ba7cf8b61606f80f1a8 (diff)
downloadcpython-ce41287e996351735ec1564bc1d701dd9057bdcf.zip
cpython-ce41287e996351735ec1564bc1d701dd9057bdcf.tar.gz
cpython-ce41287e996351735ec1564bc1d701dd9057bdcf.tar.bz2
Issue #18531: Single var-keyword argument of dict subtype was passed
unscathed to the C-defined function. Now it is converted to exact dict.
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 88dc113..b461030 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -4993,7 +4993,7 @@ ext_do_call(PyObject *func, PyObject ***pp_stack, int flags, int na, int nk)
if (flags & CALL_FLAG_KW) {
kwdict = EXT_POP(*pp_stack);
- if (!PyDict_Check(kwdict)) {
+ if (!PyDict_CheckExact(kwdict)) {
PyObject *d;
d = PyDict_New();
if (d == NULL)