def saferepr(object):
 return _safe_repr(object, {}, None, 0)[0]

def saferepr ( object ) : return _safe_repr ( object , { } , None , 0 ) [ 0 ]
version of repr() which can handle recursive data structures .