How to convert a string to hex?

William Dandreta wjdandreta at worldnet.att.net
Fri Jun 23 03:43:15 EDT 2000


Sam,

I asked the same question earlier. Here is the response:


Yes, everything except that trailing H anyway.  I'd use
string.atoi('c44d', 16), and I guess in the end that is
about the same thing as int('c44d', 16)

Donn Cave, donn at oz.net





More information about the Python-list mailing list