def iterhosts(resources):
 for (module_name, key, resource) in resources:
  (resource_type, name) = key.split(u'.', 1)
  try:
   parser = PARSERS[resource_type]
  except KeyError:
   continue
  (yield parser(resource, module_name))

def iterhosts ( resources ) : for ( module_name , key , resource ) in resources : ( resource_type , name ) = key . split ( u'.' , 1 ) try : parser = PARSERS [ resource_type ] except KeyError : continue ( yield parser ( resource , module_name ) )
yield host tuples of .