def sstrrepr(expr, **settings):

    p = StrReprPrinter(settings)
    s = p.doprint(expr)

    return s
return expr in mixed str/repr form
dataset/ETHPy150Open sympy/sympy/sympy/printing/str.py/sstrrepr