def cyclic(n):
    gen = list(range(n))
    for i in range(n):
        yield Permutation(gen)
        gen = rotate_left(gen, 1)
If run inside an Eliot context, the result of C{preserve_context} runs
dataset/ETHPy150Open sympy/sympy/sympy/combinatorics/generators.py/cyclic--crossover with--dataset/ETHPy150Open ClusterHQ/eliot/eliot/tests/test_action.py/PreserveContextTests.test_with_context_preserves_context