On 06/30/2014 12:34 PM, Peter Otten wrote:
RainyDay wrote:


     def __eq__(self, other):
         return self._loc == getattr(other, "_loc", None)

Note that None is not a good default when _loc is expected to be a tuple:

In this case None is not being returned, but will be comparid with self._loc, 
so RainyDay is good there.

--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to