--- Objects/classobject.c.ORIG 2008-05-25 11:04:06.000000000 +0200 +++ Objects/classobject.c 2008-05-25 11:05:20.000000000 +0200 @@ -501,8 +501,10 @@ static PyObject * instancemethod_descr_get(PyObject *descr, PyObject *obj, PyObject *type) { register PyObject *func = PyInstanceMethod_GET_FUNCTION(descr); - if (obj == NULL) + if (obj == NULL) { + Py_INCREF(func); return func; + } else return PyMethod_New(func, obj); }