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



-- 
Steven
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to