On Wednesday, 22 March 2017 18:48:15 UTC+1, Aaron Meurer wrote:
>
>
> How would it work as a set? How do you know which function to call?
>
>
I was thinking about something like this:
class Add:
_check_postprocess = False
@classmethod
def flatten(cls, seq):
postprocess = set([])
if cls._check_postprocess:
for i in seq:
if hasattr(i, "_postprocess_function_Add"):
postprocess.add(i._postprocess_function_Add)
[ ... body of flatten ... ]
[ call `expr` the returning expression ]
for i in postprocess:
expr = i(expr)
return expr
--
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 https://groups.google.com/group/sympy.
To view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/c6e46bef-173a-40fd-aacc-c0c5ae9ba5ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.