How to convert a number to hex number?

Klaus Alexander Seistrup klaus at
Wed Nov 9 11:36:40 CET 2005

Ron Adam wrote:

> I just happen to have been playing around with converting bases 
> the last couple of days.  (idonowhy) ;-)
> Oh yeah,  I was thinking of using base62 to generate non-repeating 
> id strings and wanted to try it out.

Shameless plug:

Have a look at my bconv at <>.  While it 
doesn't handle base 62, it handles bases 2..36 neatly.


Klaus Alexander Seistrup
Copenhagen, Denmark

More information about the Python-list mailing list