Status: Accepted
Owner: smi...@gmail.com
Labels: Type-Defect Priority-Medium NeedsReview smichr

New issue 2665 by smi...@gmail.com: count doesn't count
http://code.google.com/p/sympy/issues/detail?id=2665

Tuple(1,2,3,2).count(2) raises and error; if S(2) is given instead of 2 then a value of 0 is returned. This is because find's {} is treated as False.

See https://github.com/sympy/sympy/pull/585 for a proposed fix and test.

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@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