Is there a nice way to get Tuple to inherit tuple's methods? e.g. the
count fails:
>>> a=Tuple(1,2,3,2)
>>> a.count(S(2))
0
>>> a.count(2)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "sympy\core\basic.py", line 992, in count
return sum(self.find(query, group=True).values())
File "sympy\core\basic.py", line 975, in find
rec_find(self)
File "sympy\core\basic.py", line 969, in rec_find
if _query(expr):
TypeError: 'int' object is not callable
--
You received this message because you are subscribed to the Google Groups
"sympy" 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?hl=en.