Amaury Forgeot d'Arc added the comment: With this trivial patch, all tests still pass:
Index: Objects/descrobject.c =================================================================== --- Objects/descrobject.c (revision 60754) +++ Objects/descrobject.c (working copy) @@ -166,7 +166,7 @@ int *pres) { assert(obj != NULL); - if (!PyObject_IsInstance(obj, (PyObject *)(descr->d_type))) { + if (!PyObject_TypeCheck(obj, descr->d_type)) { PyErr_Format(PyExc_TypeError, "descriptor '%.200s' for '%.100s' objects " "doesn't apply to '%.100s' object", __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2115> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com