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

Sorry, Raffaele, you are right. I've never worked with that aspect of has (or with
the option to look for a pattern).

Regarding the efficiency, you might see has_any_symbols() and has_all_symbols() which are optimized versions looking for a single symbol. But what you say about the entire tree walk is also True and after looking at has_any_symbols and reading the commit message about the lack of efficiency of has, I re-wrote it. If you are working on the
same, you might compare it to what I tried in smichr's github branch 1766.

I am +1 on what you did.


--
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.

Reply via email to