Porting c++ to python code
<p>I want to convert this C++ code to Python v2:</p>

<pre><code>static unsigned char asConvCode[3] = {0xFC, 0xCF, 0xAB};

void asConv(char* str, int size)
{
    int i = 0;

    for (i = 0; n&lt; size; n++)
    {
        str[i] ^= asConvCode[n % 3];
    }
}
</code></pre>

<p>tried to make like that:</p>

<pre><code>def asConv(self, data):
    asConvCode= [0xFC, 0xCF, 0xAB]

    for i in range(len(data)):
        data[i] ^= asConvCode[i % 3] # Error: Unsupported operand type(s) for ^=: ...

        return data
</code></pre>

<p>I will be happy for any hint</p>
