Ok, so I've been trying to understand how SmyPy performs basic simplification. I've traced through to when __add__(self, other) is called in expr.py and returns Add(self, other). What I don't understand is how does an Add object get created when __new__ and __init__ are not implemented in the Add class?
For example, I see where Basic calls obj = object.__new__(cls), which in a case cls would be Add, but how is the Add object created that way if there is no implementation of __new__ or __init__ in Add? And also, I haven't found ANY __init__ reimplementations anywhere, but only __new__. Why is this? Thanks, Adam -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
