[Python-Dev] NotImplemented comparisons

Facundo Batista facundobatista at gmail.com
Fri Aug 3 00:15:13 CEST 2007


2007/8/2, Terry Reedy <tjreedy at udel.edu>:

> Given that you 'should' return an int, doing elsewise has undefined
> results.

I'll fix decimal to always return sane values from __cmp__, :)

Thank you all!

Regards,

-- 
.    Facundo

Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/


More information about the Python-Dev mailing list