A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-October/038818.html below:

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

[Python-Dev] Re: [Python-checkins] python/dist/src/Objects listobject.c, 2.158, 2.159Neal 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4