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 belopolsky
Recipients belopolsky, brian.curtin, loewis, ocean-city
Date 2010-12-08.20:39:03
SpamBayes Score 1.0085006e-06
Marked as misclassified No
Message-id <1291840745.7.0.0338525246955.issue10654@psf.upfronthosting.co.za>
In-reply-to
Content
> + "NotImplemented" was printed

Hmm, looks like a compiler bug to me.  Can anyone reproduce this on a debug build?  In any case, someone with a Windows setup will have to troubleshoot this further.

Note that the code in abstract.c is supposed to convert NotImplemented returns to type errors:

static PyObject *
binary_op(PyObject *v, PyObject *w, const int op_slot, const char *op_name)
{
    PyObject *result = binary_op1(v, w, op_slot);
    if (result == Py_NotImplemented) {
        Py_DECREF(result);
        return binop_type_error(v, w, op_name);
    }
    return result;
}

It should be possible to find out why this is not happening by stepping through this code with a debugger.
History
Date User Action Args
2010-12-08 20:39:05belopolskysetrecipients: + belopolsky, loewis, ocean-city, brian.curtin
2010-12-08 20:39:05belopolskysetmessageid: <1291840745.7.0.0338525246955.issue10654@psf.upfronthosting.co.za>
2010-12-08 20:39:03belopolskylinkissue10654 messages
2010-12-08 20:39:03belopolskycreate