code: def cdx_limit(cdx_iter, limit):
      
  #    for cdx, _ in itertools.izip(cdx_iter, xrange(limit)):
  #        yield cdx
      return (cdx for cdx, _ in zip(cdx_iter, range(limit)))
docs: limit cdx to at most `limit`.