Add the type of the object to the error message about calling a non-function.
diff --git a/Python/ceval.c b/Python/ceval.c
index ff5ee50..0178f84 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -2369,7 +2369,8 @@
 		Py_DECREF(call);
 		return res;
 	}
-	PyErr_SetString(PyExc_TypeError, "call of non-function");
+	PyErr_Format(PyExc_TypeError, "call of non-function (type %s)",
+		     func->ob_type->tp_name);
 	return NULL;
 }
 
@@ -2438,8 +2439,9 @@
 	}
 	else {
 		if (!PyFunction_Check(func)) {
-			PyErr_SetString(PyExc_TypeError,
-					"call of non-function");
+			PyErr_Format(PyExc_TypeError,
+				     "call of non-function (type %s)",
+				     func->ob_type->tp_name);
 			return NULL;
 		}
 		Py_INCREF(arg);