From: Stefan Behnel Date: Thu, 14 Jan 2010 08:09:03 +0000 (+0100) Subject: looks like CPython can handle dict subtypes in kwargs calls X-Git-Tag: 0.12.1~24 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=99c316ca9fa486c67076d0e40c022b8392f67b20;p=cython.git looks like CPython can handle dict subtypes in kwargs calls --- 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;