Message 109128 - Python tracker (original) (raw)

The best I could come up with is -cmp.diff - basically replacing _cmp(self, other) with _normalize(self, other) that returns a pair of objects that compare the same as self and other.

I am not committing this in sandbox because I don't see this a big improvement.

Datetime comparisons are tricky due to date/datetime inheritance. I think it is best not to touch it.