def _LookupTargets(names, mapping):
 return [mapping[name] for name in names if (name in mapping)]

def _LookupTargets ( names , mapping ) : return [ mapping [ name ] for name in names if ( name in mapping ) ]
returns a list of the mapping[name] for each value in |names| that is in |mapping| .