(self, expr)
return res
Prints the expression as MathML.
Prints the expression as MathML.
Prints the expression as MathML .
def doprint(self, expr):
        """
        Prints the expression as MathML.
        """
        mathML = Printer._print(self, expr)
        unistr = mathML.toxml()
        xmlbstr = unistr.encode('ascii', 'xmlcharrefreplace')
        res = xmlbstr.decode()
        return res
def doprint ( self , expr ) : mathML = Printer . _print ( self , expr ) unistr = mathML . toxml ( ) xmlbstr = unistr . encode ( 'ascii' , 'xmlcharrefreplace' ) res = xmlbstr . decode ( ) return res