def _merge_rows(srow, orow, other_idx):
  """Merge two lists, leaving out orow[other_idx]."""
  result = list(srow)
  for i in range(len(orow)):
    if i == other_idx:
      continue
    result.append(orow[i])
  return tuple(result)