Is there a way to control the bit length of numbers in python?
<p>i have a number such as 0b11001100, which is 8-bits long. i want to always be 8-bit, no more, no less.</p>

<p>what i would like is something either built into python, a module in the standard library, or a module that would be easily portable (if possible).</p>