Comment #3 on issue 1902 by smichr: 'has' method fails when argument is 'Symbol' or 'Wild'
http://code.google.com/p/sympy/issues/detail?id=1902

Perhaps you are confusing atoms() with has(). has() is suppose to look for patterns while atoms() will give sub-expressions of a given type (and it can get the type by
example):

var('x y z')
(x, y, z)

x.atoms(Symbol)
set([x])
(x+y).atoms(x) # class by example
set([x, y])

(x+y).has(x)
True
(x+y).has(z)
False

(-1) Is there a reason to change the current behavior?


--
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 sympy-iss...@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to