def pairwise(iterable):
    a, b = itertools.tee(iterable)
    next(b, None)
    return itertools.izip(a, b)
Helper to set the caching headers.
dataset/ETHPy150Open aarongarrett/inspyred/docs/moonshot.py/pairwise--crossover with--dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/ext/zipserve/__init__.py/ZipHandler.SetCachingHeaders