What about adding the following function to basic.py:
def count_chars(self):
"""
Return the number of characters in expressions.
"""
return len(str(self))
Perhaps call it len?
--
You received this message because you are subscribed to the Google Groups
"sy
hmm
'Mul' object has no attribute 'count_chars'
On Nov 30, 12:38 pm, freevryheid wrote:
> What about adding the following function to basic.py:
>
> def count_chars(self):
> """
> Return the number of characters in expressi
The point - I'm trying to figure out the SymPy expression as an
object. Why convert to a string to get its length?
On Nov 30, 12:54 pm, Ronan Lamy wrote:
> Le mardi 30 novembre 2010 à 10:42 -0800, freevryheid a écrit :
>
> > hmm
>
> > 'Mul' object has no att