Converting a hex string to a number

Emile van Sebille emile at fenx.com
Tue Jul 9 17:20:35 EDT 2002


Simon Foster
> >> eval!
> What do you mean by unsafe?

eval is generally to be avoided when other methods suffice:

>>> int(string, 16)
305419896

--

Emile van Sebille
emile at fenx.com

---------




More information about the Python-list mailing list