def __eq__(self, other):
return (isinstance(other, self.__class__) and<EOL>self._direction == other._direction and<EOL>self._left == other._left and<EOL>self._right == other._right)<EOL>
Indicate equality of self and other