Convert binary string to int
<p>I'd simply like to convert a binary string into an int, something like this:</p>

<pre><code>&gt;&gt;&gt; '11111111'.fromBinaryToInt()
255
</code></pre>

<p>Is there a way to do this in Python? </p>
