From: David J. C. B. <be...@ve...> - 2004-03-08 14:37:26
|
On Mon, 2004-03-08 at 02:10, Andre Wobst wrote: > And about you patch ... is there a reason why having the id-comparion > in the end? This looks totally unnatural to me ... did you step into > troubles when not having this extra interpretation of the comparision > operation??? Good question. I did it just so that if the units (resulting from tom) came out as equal, the lengths would still be considered different.=20 This was so that even if two lengths came out to be the same in measurement, they would not be treated as identical. As I think about this more, it is probably a bad idea. Maybe better to just use: def __cmp__(self, other): return cmp(tom(self), tom(other)) Dave --=20 David J. C. Beach <be...@ve...> |