def get_generator_names_descriptions():
 descs = []
 for language in registered_languages:
  for generator in language.html_generators:
   description = getattr(generator, 'description', None)
   if (description is None):
    description = generator.name
   descs.append((generator.name, description))
 return descs

def get_generator_names_descriptions ( ) : descs = [ ] for language in registered_languages : for generator in language . html_generators : description = getattr ( generator , 'description' , None ) if ( description is None ) : description = generator . name descs . append ( ( generator . name , description ) ) return descs
return a tuple of the name and description .