def first_last(idx, seq):
    return classes(first=idx == 0, last=idx == len(seq) - 1)
:return: instance registered with register_object()
dataset/ETHPy150Open edgewall/trac/trac/util/presentation.py/first_last--crossover with--dataset/ETHPy150Open dsiroky/snakemq/snakemq/rpc.py/RpcClient.get_proxy