def briefstr(x):
    try:
	return getattr(x, 'brief')
    except __HOLE__:
	if isinstance(x, tuple):
	    return '(%s)'%(','.join([briefstr(xi) for xi in x]))
	return str(x)
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/guppy-0.1.10/guppy/heapy/Spec.py/briefstr