Hi everyone, Given a symbolic expression (e.g., "laplace(u) + lambda * u), I'm parsing that expression to generate code for a particular HPC framework. Up until now, I'm using custom objects and Python's own AST module to parse the syntax tree. SymPy, however, could add functionality, so right now I'm evaluating if it's feasible for me to transition to using SymPy objects for expressions.
In the custom parser, I'm adding attributes to nodes to pass around information. For sympy objects, this is not possible since they don't have a __dict__. Is there any other way to embellish SymPy objects (such as Add, Symbol) with extra attributes? Cheers, Nico -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/ee33f72a-7986-4451-8035-623086b28420%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
