How to convert a number to hex number?

Klaus Alexander Seistrup klaus at seistrup.dk
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 <http://magnetic-ink.dk/14>.  While it 
doesn't handle base 62, it handles bases 2..36 neatly.

Cheers,

-- 
Klaus Alexander Seistrup
Copenhagen, Denmark
http://magnetic-ink.dk/



More information about the Python-list mailing list