From 99c316ca9fa486c67076d0e40c022b8392f67b20 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 14 Jan 2010 09:09:03 +0100 Subject: [PATCH] looks like CPython can handle dict subtypes in kwargs calls --- Cython/Compiler/ExprNodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index f77e4e1f..6679002a 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -6442,7 +6442,7 @@ static PyObject* __Pyx_PyEval_CallObjectWithKeywords(PyObject*, PyObject*, PyObj impl = """ static PyObject* __Pyx_PyEval_CallObjectWithKeywords(PyObject *callable, PyObject *args, PyObject *kwargs) { PyObject* result; - if (likely(PyDict_CheckExact(kwargs))) { + if (likely(PyDict_Check(kwargs))) { return PyEval_CallObjectWithKeywords(callable, args, kwargs); } else { PyObject* real_dict; -- 2.26.2