def first_diff(a, b):
    
    i = -1
    for i in xrange(0, len(a)):
        if a[i] != b[1]:
            return i
        if i == 255: return i
    return i + 1
Add prefix using from-pool to NIPAP
dataset/ETHPy150Open tallstreet/Whoosh-AppEngine/src/whoosh/util.py/first_diff--crossover with--dataset/ETHPy150Open SpriteLink/NIPAP/nipap-cli/nipap_cli/nipap_cli.py/add_prefix_from_pool