Re: [Python-Dev] NotImplemented comparisons

Aug. 3, 2007
3:17 a.m.
2007/8/2, Paul Moore <p.f.moore@gmail.com>:
"NotImplemented < 0" returns False, which is ok, but different from "c < None" 2007/8/2, Guido van Rossum <guido@python.org>:
But how do you explain the difference in behaviour between Linux and Windows?
Perhaps the comparison compares the objects' address.
No, because NotImplemented and None are always the same: if this is the problem Linux and Windows could be different but they would be consistent with themselves (and Windows is not coherent with itself). Bottom line: I can easily fix Decimal to handle this special case, the point is that maybe we have a lower level bug here... Regards, -- . Facundo Blog: http://www.taniquetil.com.ar/plog/ PyAr: http://www.python.org/ar/
6437
Age (days ago)
6437
Last active (days ago)
0 comments
1 participants
participants (1)
-
Facundo Batista