We don't use it anymore, and it is not useful for static analysis (you only need to implement a subset of the methods to support all comparisons) nor at runtime (every object implements all of the __xx__ methods, but most return NotImplemented, meaning that isinstance(anything, Comparable) was always true even for things that were not comparable, like regular old object().
We don't use it anymore, and it is not useful for static analysis (you only need to implement a subset of the methods to support all comparisons) nor at runtime (every object implements all of the
__xx__
methods, but most returnNotImplemented
, meaning thatisinstance(anything, Comparable)
was always true even for things that were not comparable, like regular oldobject()
.