def same_name(f, g):
 return ((f == g) or (getattr(f, '__name__', 0) == getattr(g, '__name__', 1)))

def same_name ( f , g ) : return ( ( f == g ) or ( getattr ( f , '__name__' , 0 ) == getattr ( g , '__name__' , 1 ) ) )
test whether functions f and g are identical or have the same name .