[Python-Dev] Re: [Python-checkins] python/dist/src/Objects listobject.c, 2.158, 2.159

Neal Norwitz neal at metaslash.com
Thu Oct 16 11:52:12 EDT 2003


On Wed, Oct 15, 2003 at 08:41:11PM -0700, rhettinger at users.sourceforge.net wrote:
> 
> Index: listobject.c
> ===================================================================
> + static PyObject *
> + cmpwrapper_call(cmpwrapperobject *co, PyObject *args, PyObject *kwds)
> + {
> + 	PyObject *x, *y, *xx, *yy;
> + 
> + 	if (!PyArg_UnpackTuple(args, "", 2, 2, &x, &y))
> + 		return NULL;
> + 	if (!PyObject_TypeCheck(x, &sortwrapper_type) ||
> + 	    !PyObject_TypeCheck(x, &sortwrapper_type)) {

The second line should be checking y, not x?

Neal



More information about the Python-Dev mailing list