ebsco/ebscopy

Results objects should have equality and inequality defined

Closed this issue · 2 comments

lt/gt based on hits count?

class MyClass:
 def __lt__(self, other):
      # return comparison
 def __le__(self, other)
      # return comparison
 def __eq__(self, other)
      # return comparison
 def __ne__(self, other)
      # return comparison
 def __gt__(self, other)
      # return comparison
 def __ge__(self, other)
      # return comparison

eq and ne done.

Others done, needs testing.