[Python-3000] [Python-3000-checkins] r54588 (original) (raw)

Amaury Forgeot d'Arc amauryfa at gmail.com
Thu Mar 29 21:31:16 CEST 2007


Hello,

Sorry if I am wrong, but it seems to me that the change in r54588 has a problem: http://mail.python.org/pipermail/python-3000-checkins/2007-March/000433.html

One easy way to correct this is to move the last INCREF: (sorry for the approximative patch format)

python/branches/p3yk/Objects/typeobject.c:

static PyObject * object_richcompare(PyObject *self, PyObject *other, int op) { PyObject *res;

 switch (op) {

 case Py_EQ:
     res = (self == other) ? Py_True : Py_False;

Just trying to be faster than Coverity...

-- Amaury Forgeot d'Arc



More information about the Python-3000 mailing list