def saferepr(obj, maxsize=<NUM_LIT>):
<EOL>srepr = SafeRepr()<EOL>srepr.maxstring = maxsize<EOL>srepr.maxsize = maxsize<EOL>srepr.maxother = <NUM_LIT><EOL>return srepr.repr(obj)<EOL>
return a size-limited safe repr-string for the given object.
    Failing __repr__ functions of user instances will be represented
    with a short exception info and 'saferepr' generally takes
    care to never raise exceptions itself.  This function is a wrapper
    around the Repr/reprlib functionality of the standard 2.6 lib.