Steven D'Aprano steve at
Thu Aug 19 19:42:37 CEST 2010

On Thu, 19 Aug 2010 11:00:03 -0400, Alex Hall wrote:

>  def __eq__(self, obj):
>   if self.a==obj.a and self.b==obj.b: return True
>   return False

That would be the same as:

   def __eq__(self, obj):
     return self.a==obj.a and self.b==obj.b


More information about the Python-list mailing list