[Python-Dev] RE: [Python-checkins] python/dist/src/Objects object.c,2.175,2.176

Tim Peters tim.one@comcast.net
Mon, 03 Jun 2002 16:49:17 -0400


[Guido]
> Modified Files:
> 	object.c
> Log Message:
> Implement the intention of SF patch 472523 (but coded differently).
>
> In the past, an object's tp_compare could return any value.  In 2.2
> the docs were tightened to require it to return -1, 0 or 1; and -1 for
> an error.
>
> We now issue a warning if the value is not in this range.
> ...
>
> I haven't decided yet whether to backport this to 2.2.x.  The patch
> applies fine.  But is it fair to start warning in 2.2.2 about code
> that worked flawlessly in 2.2.1?

If 2.2.x is the Python-in-a-Tie line, I say "no way".  People wearing ties
don't care whether a thing is right or wrong, so long as "it works" they
simply don't want to hear about it at all.  Converting old extensions to
avoid new warnings is a 2.3 task for them.