def _function_pprint(obj, p, cycle):
 name = _safe_getattr(obj, '__qualname__', obj.__name__)
 mod = obj.__module__
 if (mod and (mod not in ('__builtin__', 'builtins', 'exceptions'))):
  name = ((mod + '.') + name)
 p.text(('<function %s>' % name))

def _function_pprint ( obj , p , cycle ) : name = _safe_getattr ( obj , '__qualname__' , obj . __name__ ) mod = obj . __module__ if ( mod and ( mod not in ( '__builtin__' , 'builtins' , 'exceptions' ) ) ) : name = ( ( mod + '.' ) + name ) p . text ( ( '<function %s>' % name ) )
base pprint for all functions and builtin functions .