def previous_current_next(items):
    extend = itertools.chain([None], items, [None])
    previous, current, next = itertools.tee(extend, 3)
    try:
        current.next()
        next.next()
        next.next()
    except StopIteration:
        pass
    return itertools.izip(previous, current, next)
Returns the user using the Graph API.
dataset/ETHPy150Open agiliq/django-socialnews/socialnews/mptt/utils.py/previous_current_next--crossover with--dataset/ETHPy150Open sahana/eden/modules/s3oauth.py/FaceBookAccount.get_user