Enable pickling for symbolic expressions
In pytential.symbolic.primitives,
-
For each subclass of Expressionwith overrided__new__, either add default value to all positional arguments, or add__getnewargs__. -
For each subclass of Expression, addinit_arg_names, so that__setstate__inExpressioncan be processed correctly. -
Investigate why after pickling, IntG.kernel_argumentschanges from a dictionary to a tuple.
Edited by Hao Gao