Comment #10 on issue 1923 by nicolas.pourcelot: count_ops doesn't return a count (by default)
http://code.google.com/p/sympy/issues/detail?id=1923

"As per Mateusz's comment, I have now made it return ints."

Is this in smichr/1923 branch ?

type(count_ops(x+y))
<class 'sympy.core.numbers.One'>

In sympy/core/basic.py, the line:

"rv = S.Zero + len(self.args)"

converts values from ints to Integers.

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