def count_from_n_factory(start):
    """Numbering function: consecutive integers starting at arbitrary start."""

    def f(index, collection):
        return index + start
    try:
        f.__name__ = start % 'count_from_%i'
    except TypeError:
        pass
    return f
dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/sqlalchemy/ext/orderinglist.py/count_from_n_factory/swapped operands of `%`