On Sun, Apr 19, 2015 at 2:09 AM, Paul Moore <p.f.moore@gmail.com> wrote:The discussion was about this small change:intThere are more explanations in the thread in case you want to know more.
PyCallable_Check(PyObject *x)
{
- if (x == NULL)
+ if (x == NULL) {
return 0;
- return x->ob_type->tp_call != NULL;
+ }
+
+ return Py_TYPE(x)->tp_call && _PyObject_HasAttrId(x, &PyId___call__);
}
Thanks,
-- Ionel Cristian Mărieș, http://blog.ionelmc.ro