(expr, **settings)
return s
return expr in mixed str/repr form

       i.e. strings are returned in repr form with quotes, and everything else
       is returned in str form.

       This function could be useful for hooking into sys.displayhook
return expr in mixed str/repr form
return expr in mixed str / repr form
def sstrrepr(expr, **settings):
    """return expr in mixed str/repr form

       i.e. strings are returned in repr form with quotes, and everything else
       is returned in str form.

       This function could be useful for hooking into sys.displayhook
    """

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

    return s
def sstrrepr ( expr , * * settings ) : p = StrReprPrinter ( settings ) s = p . doprint ( expr ) return s