This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, christian.heimes, facundobatista, jyasskin, theller
Date 2008-02-14.21:46:46
SpamBayes Score 0.014847476
Marked as misclassified No
Message-id <1203025607.79.0.242778692625.issue2115@psf.upfronthosting.co.za>
In-reply-to
Content
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",
History
Date User Action Args
2008-02-14 21:46:47amaury.forgeotdarcsetspambayes_score: 0.0148475 -> 0.014847476
recipients: + amaury.forgeotdarc, theller, facundobatista, christian.heimes, jyasskin
2008-02-14 21:46:47amaury.forgeotdarcsetspambayes_score: 0.0148475 -> 0.0148475
messageid: <1203025607.79.0.242778692625.issue2115@psf.upfronthosting.co.za>
2008-02-14 21:46:47amaury.forgeotdarclinkissue2115 messages
2008-02-14 21:46:46amaury.forgeotdarccreate