def __eq__(self, other):
if isinstance(other, Expression):<EOL><INDENT>return (self._variables == other._variables and<EOL>self._offset == other._offset)<EOL><DEDENT>elif isinstance(other, Variable):<EOL><INDENT>return (self._offset == <NUM_LIT:0> and len(self._variables) == <NUM_LIT:1> and<EOL>next(iterkeys(self._variables)) == other and<EOL>next(itervalues(self._variables)) == <NUM_LIT:1>)<EOL><DEDENT>elif isinstance(other, numbers.Number):<EOL><INDENT>return len(self._variables) == <NUM_LIT:0> and self._offset == other<EOL><DEDENT>return False<EOL>
Expression equality