def do_OP_RIGHT(stack):
    pos = nonnegative_int_from_script_bytes(stack.pop())
    if pos > 0:
        stack.append(stack.pop()[-pos:])
    else:
        stack.pop()
        stack.append(b'')
>>> s = [b'abcdef', b'\3']
dataset/ETHPy150Open richardkiss/pycoin/pycoin/tx/script/microcode.py/do_OP_RIGHT