Loading

Paste #plbaxzxsg

  1. In Industry class:
  2.  
  3.     def __lt__(self, other):
  4.         if not isinstance(other, Industry):
  5.             return None # Cannot compare
  6.         return self.id < other.id
  7.  
  8.     def __eq__(self, other):
  9.         if not isinstance(other, Industry):
  10.             return None # Cannot compare
  11.         return self.id == other.id

Comments