On 02/08/07, Facundo Batista <[EMAIL PROTECTED]> wrote:
> I understand that is tricky how NotImplemented and comparisons interact.
>
> But how do you explain the difference in behaviour between Linux and Windows?

A wild guess: c < None falls back to checking c.__cmp__(None) < 0.
This translates to NotImplemented < 0, and as the ordering of built in
types is implementation dependent, maybe that explains the difference
between Windows and Linux?

Paul.
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to