69
67
# Compute the representation now, such that we can use it directly
70
68
# in the __eq__ and __ne__ methods (improves performance a bit, but
71
69
# only when objects are cached).
73
71
self._repr = "Symbol('%s', %s, %s, %d)" % (self.v, type_to_string[self.t],\
74
72
self.base_expr._repr, self.base_op)
76
self._repr = "Symbol('%s', %s, %s, %d, %s)" % (self.v, type_to_string[self.t],\
79
self._repr = "Symbol('%s', %s, %s, %d, %s, %s)" % (self.v, type_to_string[self.t],\
80
self.base_expr, self.base_op, self.exp, self.cond)
82
74
self._repr = "Symbol('%s', %s)" % (self.v, type_to_string[self.t])