def visiblename(name, all=None):
 _hidden_names = ('__builtins__', '__doc__', '__file__', '__path__', '__module__', '__name__', '__slots__', '__package__')
 if (name in _hidden_names):
  return 0
 if (name.startswith('__') and name.endswith('__')):
  return 1
 if (all is not None):
  return (name in all)
 else:
  return (not name.startswith('_'))

def visiblename ( name , all = None ) : _hidden_names = ( '__builtins__' , '__doc__' , '__file__' , '__path__' , '__module__' , '__name__' , '__slots__' , '__package__' ) if ( name in _hidden_names ) : return 0 if ( name . startswith ( '__' ) and name . endswith ( '__' ) ) : return 1 if ( all is not None ) : return ( name in all ) else : return ( not name . startswith ( '_' ) )
decide whether to show documentation on a variable .