def _safe_update(d, other):
 for (k, v) in compat.iteritems(other):
  if (k in d):
   raise Exception(('Duplicate regressor: %s' % k))
  d[k] = v

def _safe_update ( d , other ) : for ( k , v ) in compat . iteritems ( other ) : if ( k in d ) : raise Exception ( ( 'Duplicate regressor: %s' % k ) ) d [ k ] = v
combine dictionaries with non-overlapping keys .