Represent Number in python3 : <p>I want to know if there are any build-in class of python3 that can represent the number in all <strong>hex</strong>, <strong>binary</strong>, <strong>integer</strong>. type.</p>

<p>So I do not need to implment lots of methods to convert from one form to the another.</p>

<p>For example</p>

<pre><code>number = SomeClass(number,base)
# then I can call the build in function hex(), int(), bin() to convert the number
"0b0000" = bin(number)
"0x0000" = hex(number)
 "0" = int(number)
</code></pre>
