[Python-Dev] On __cmp__ specifications and implementation (to mimic it on Jython)

Leo Soto M. leo.soto at gmail.com
Wed Aug 6 02:56:11 CEST 2008


On Tue, Aug 5, 2008 at 4:59 PM, Guido van Rossum <guido at python.org> wrote:
> On Tue, Aug 5, 2008 at 1:56 PM, Leo Soto M. <leo.soto at gmail.com> wrote:
>> On Tue, Aug 5, 2008 at 4:45 PM, Guido van Rossum <guido at python.org> wrote:
>>> Given that in Python 3.0 __cmp__ is going away, I'm not sure how much
>>> it all matters -- but if you care, as long as it's supported at all,
>>> you might as well strive for the most compatibility with 2.5...
>>
>> Sure, it won't be a problem on Jython 3.0. But I'm doing this for the
>> upcoming Jython 2.5, where we still have to live with __cmp__
>
> Which is why I recommend the closest possible compatibility. :-)

Oh, right :)

But that's going to be easier if I understand the "why" and not only
the "how". I can live with a "no idea why" answer, though.

-- 
Leo Soto M.
http://blog.leosoto.com


More information about the Python-Dev mailing list