ebsco / ebscopy

The official Python wrapper for the EBSCO Discovery Service API
GNU General Public License v3.0
15 stars 5 forks source link

Results objects should have equality and inequality defined #3

Closed jessejensen closed 7 years ago

jessejensen commented 9 years ago

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
jessejensen commented 9 years ago

eq and ne done.

jessejensen commented 9 years ago

Others done, needs testing.