title: Convert list of ints to one number?
body: <p>I have a list of integers that I would like to convert to one number like:</p>
  
  <pre><code>numList = [1, 2, 3]
  num = magic(numList)
  
  print num, type(num)
  &gt;&gt;&gt; 123, &lt;type 'int'&gt;
  </code></pre>
  
  <p>What is the best way to implement the <em>magic</em> function?</p>
  
  <p><strong>EDIT</strong> <br>
  I did find <a href="http://bytes.com/groups/python/722951-int-str-list-elements" rel="noreferrer">this</a>, but it seems like there has to be a better way.</p>