Is there a simple way to create a deep copy of an expression object in python? If not, what is it about the expression class that does not make it suitable to have a copy constructor?
I've tried finding similar questions but have not found any.
Expression doesn't store any data of its own. It simply defines virtual methods to be overridden which define the mathematical expression it encapsulates. There is no sense in providing a deep copy of Expression.
Expression