def read_index_dict(f):
 ret = {}
 for x in read_index(f):
  ret[x[0]] = IndexEntry(*x[1:])
 return ret

def read_index_dict ( f ) : ret = { } for x in read_index ( f ) : ret [ x [ 0 ] ] = IndexEntry ( * x [ 1 : ] ) return ret
read an index file and return it as a dictionary .