python 'long' hex value to decimal
<p>hi i want to hex value to decimal without loop(because 'speed' problem)</p>

<pre><code>ex)
&gt;&gt;&gt; myvalue = "\xff\x80\x17\x90\x12\x44\x55\x99\x90\x12\x80"
&gt;&gt;&gt; int(myvalue)
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
ValueError: invalid literal for int() with base 10: '\xff\x80\x17\x90\x12DU\x99\x90\x12\x80'

&gt;&gt;&gt; ord(myvalue)
Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
TypeError: ord() expected a character, but string of length 11 found
&gt;&gt;&gt;
</code></pre>

<p>anyone helps ?</p>
