Comment #1 on issue 1623 by smichr: match doesn't exclude functions
http://code.google.com/p/sympy/issues/detail?id=1623
Hmmm...this is not a quick fix. There are many things that depend on the
present
behavior (e.g. logcombine puts a log-exclude on a variable but then
actually tests
that variable to see if it matched a log term...with the broken nature of
things it
*has* to but it really shouldn't have to (I think) if things were working
properly).
If I do something like the following in symbol/matches things start to
break:
if pattern.exclude:
for x in pattern.exclude:
if type(x) is Wild:
if x in expr:
return None
elif expr.has(x):
return None
I'm not sure of the best way to fix this.
/c
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en
-~----------~----~----~----~------~----~------~--~---