I have a list of integers that I would like to convert to one number like:

```
numList = [1, 2, 3]
num = magic(numList)

print num, type(num)
>>> 123, <type 'int'>

```

What is the best way to implement the *magic* function?

**EDIT**   

I did find [this](http://bytes.com/groups/python/722951-int-str-list-elements), but it seems like there has to be a better way.