def dzip_exact(*dicts):
 if (not same(*map(viewkeys, dicts))):
  raise ValueError(('dict keys not all equal:\n\n%s' % _format_unequal_keys(dicts)))
 return {k: tuple((d[k] for d in dicts)) for k in dicts[0]}

def dzip_exact ( * dicts ) : if ( not same ( * map ( viewkeys , dicts ) ) ) : raise ValueError ( ( 'dict keys not all equal:\n\n%s' % _format_unequal_keys ( dicts ) ) ) return { k : tuple ( ( d [ k ] for d in dicts ) ) for k in dicts [ 0 ] }
parameters *dicts : iterable[dict] a sequence of dicts all sharing the same keys .