title: Python Trailing L Problem
body: <p>I'm using Python to script some operations on specific locations in memory (32 bit addresses) in an embedded system.  </p>
  
  <p>When I'm converting these addresses to and from strings, integers and hex values a trailing L seems to appear.  This can be a real pain, for example the following seemingly harmless code won't work:</p>
  
  <pre><code>int(hex(4220963601))
  </code></pre>
  
  <p>Or this:</p>
  
  <pre><code>int('0xfb96cb11L',16)
  </code></pre>
  
  <p>Does anyone know how to avoid this?</p>
  
  <p>So far I've come up with this method to strip the trailing L off of a string, but it doesn't seem very elegant:</p>
  
  <pre><code>if longNum[-1] == "L":
     longNum = longNum[:-1]
  </code></pre>