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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.