Status: Accepted
Owner: ----
Labels: Type-Defect Priority-High EasyToFix
New issue 1283 by fabian.seoane: can't print tuples to mathml
http://code.google.com/p/sympy/issues/detail?id=1283
In [1]: from sympy.printing import mathml
In [2]: mathml([S.One/2])
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (39, 0))
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/Users/fabian/dev/sympy/<ipython console> in <module>()
/Users/fabian/dev/sympy/sympy/printing/mathml.pyc in mathml(expr)
142 """Returns the MathML representation of expr"""
143 s = MathMLPrinter()
--> 144 return s.doprint(sympify(expr))
145
146 def print_mathml(expr):
/Users/fabian/dev/sympy/sympy/printing/mathml.pyc in doprint(self, e)
15
16 def doprint(self, e):
---> 17 return self._print(e).toprettyxml()
18
19 def mathml_tag(self, e):
AttributeError: 'str' object has no attribute 'toprettyxml'
--
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
-~----------~----~----~----~------~----~------~--~---