looks like CPython can handle dict subtypes in kwargs calls
authorStefan Behnel <scoder@users.berlios.de>
Thu, 14 Jan 2010 08:09:03 +0000 (09:09 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Thu, 14 Jan 2010 08:09:03 +0000 (09:09 +0100)
Cython/Compiler/ExprNodes.py

index f77e4e1fb6ddba3c486d970e83d779e4263173f0..6679002a51e441baaab9cb0f153665c3b5297d28 100644 (file)
@@ -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;