python allows conversions from string to integer using any base in the range [2,36] using:
int(string,base)
im looking for an elegant inver
If you use Numpy, there is numpy.base_repr.
You can read the code under numpy/core/numeric.py. Short and elegant