Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
Returns a string representation of an object, or a string containing a
traceback, if that object's __repr__ raised an exception.

@param o: Any object.

@rtype: C{str}

        def safe_repr(o):
    """
    Returns a string representation of an object, or a string containing a
    traceback, if that object's __repr__ raised an exception.

    @param o: Any object.

    @rtype: C{str}
    """
    return _safeFormat(repr, o)
        


src/g/t/gtwisted-0.1.7alpha/gtwisted/utils/failure.py   gtwisted(Download)
    @returns: a sequence of (name, repr) pairs.
    """
    return [(name, reflect.safe_repr(obj)) for (name, obj) in varsDictItems]