[Patches] New sys method to return total reference count in debug builds.
Mark Hammond
mhammond@skippinet.com.au
Thu, 8 Jun 2000 09:43:13 +1000
Points taken.
However, looking at the diff in context, the function above is:
static PyObject *
sys_getrefcount(self, args)
PyObject *self;
PyObject *args;
{
PyObject *arg;
if (!PyArg_ParseTuple(args, "O:getrefcount", &arg))
return NULL;
return PyInt_FromLong((long) arg->ob_refcnt);
}
You can probably see where the explicit cast to long came from - it was
copied from the existing function above it!
Should my revised patch also drop the cast here? I assume so, for the same
reasons...
Mark.