[Python-Dev] NotImplemented comparisons

Facundo Batista facundobatista at gmail.com
Thu Aug 2 21:14:37 CEST 2007

2007/8/2, Guido van Rossum <guido at python.org>:

> NonImplemented isn't treated as special when returned by __cmp__();
> __cmp__ is not considered a binary operator like __add__. (__lt__ and
> friends *do* get treated as such -- but instead of __rlt__ we use
> __gt__, etc.)

I understand that is tricky how NotImplemented and comparisons interact.

But how do you explain the difference in behaviour between Linux and Windows?


.    Facundo

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

More information about the Python-Dev mailing list