Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Tue Aug 24 12:23:35 CEST 2010

In message <mailman.2311.1282230005.1673.python-list at>, Alex Hall 

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

Is there a “Useless Use Of ...” award category for these “if <boolean> then 
return True; else return False” constructs?

More information about the Python-list mailing list