Identifying expressions created with `evaluate=False`

27 views
Skip to first unread message

Kate MacInnis

unread,
Oct 2, 2015, 11:54:40 PM10/2/15
to sympy
I think I know the answer already, but just to be sure, if I have several expression objects (mostly Add and Mul), some of which were created with `evaluate=False`, is there any way to tell which those are?

Aaron Meurer

unread,
Oct 3, 2015, 3:16:22 PM10/3/15
to sy...@googlegroups.com
What method were you thinking of?

As far as I can tell from the code, this information isn't saved on
the object. I think the only way to do it is to compare expr and
expr.func(*expr.args). That will tell you if something didn't
evaluate that would have. It won't tell you if evaluate=False was used
but wasn't really needed.

Aaron Meurer
> --
> 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 sympy+un...@googlegroups.com.
> To post to this group, send email to sy...@googlegroups.com.
> 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/460b6260-4fd3-4a66-ae07-fc600b253855%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages