converting hex to int, the 'L' character
<p>I have a 64bit hex number and I want to convert it to unsigned integer. I run </p>

<pre><code>&gt;&gt;&gt; a = "ffffffff723b8640"
&gt;&gt;&gt; int(a,16)
18446744071331087936L
</code></pre>

<p>So what is the 'L' at the end of the number?</p>

<p>Using the following commands also don't help</p>

<pre><code>&gt;&gt;&gt; int(a,16)[:-1]
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
TypeError: 'long' object is unsubscriptable
&gt;&gt;&gt; int(a,16).rstrip("L")
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
AttributeError: 'long' object has no attribute 'rstrip'
</code></pre>
