mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #18531: Single var-keyword argument of dict subtype was passed
unscathed to the C-defined function. Now it is converted to exact dict.
This commit is contained in:
parent
a26e4b97d8
commit
ce41287e99
4 changed files with 82 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue