def iter_resolve_and_parse_specs(rel_path, specs):
 for spec in specs:
  (spec_path, target_name) = parse_spec(spec, rel_path)
  (yield SingleAddress(spec_path, target_name))

def iter_resolve_and_parse_specs ( rel_path , specs ) : for spec in specs : ( spec_path , target_name ) = parse_spec ( spec , rel_path ) ( yield SingleAddress ( spec_path , target_name ) )
given a relative path and set of input specs .