def gather_unique_dicts(dict_iterable):
 id_set = set()
 result = []
 for obj in dict_iterable:
  if (obj['id'] not in id_set):
   id_set.add(obj['id'])
   result.append(obj)
 return result

def gather_unique_dicts ( dict_iterable ) : id_set = set ( ) result = [ ] for obj in dict_iterable : if ( obj [ 'id' ] not in id_set ) : id_set . add ( obj [ 'id' ] ) result . append ( obj ) return result
pick out unique objects from an iterable of object dicts .