def show_hidden(str, show_all=False):
 return (show_all or str.startswith('__') or (not str.startswith('_')))

def show_hidden ( str , show_all = False ) : return ( show_all or str . startswith ( '__' ) or ( not str . startswith ( '_' ) ) )
return true for strings starting with single _ if show_all is true .