On 22 Jan 2008, at 20:36, tomer filiba wrote: > i can work on a patch, but before i start, i want to make sure it's > accepted. the change will require sq_contains to return a PyObject, > as well as some minor tweaks to cmp_outcome().
I don't know if your patch will be accepted but two salient questions you should address are: a) Will the change break much existing code? b) Will the change substantially impact performance? It seems to me that the answer should be 'no' to both questions, which is a good start! Nicko > ---------- Forwarded message ---------- > From: Guido van Rossum <[EMAIL PROTECTED]> > Date: Jan 22, 2008 9:55 PM > Subject: Re: [Python-Dev] misbehaving __contains__ > To: tomer filiba <[EMAIL PROTECTED]> > Cc: [EMAIL PROTECTED] > > > The issue is that the sq_contains slot is defined as returning an int, > while the tp_richcompare slot is defined as returning a PyObject *. > > Your first opportunity for changing this will be Py3k. Please submit > a patch! _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com