Converting a hex string to a number

Simon Foster simon at uggs.demon.co.uk
Wed Jul 10 13:18:49 EDT 2002


On Wed, 10 Jul 2002 09:28:31 GMT, "Fredrik Lundh"
<fredrik at pythonware.com> wrote:

>Simon Foster wrote:
>
>> Oh Fredrik, I bought your book too!
>
>good.
>
>page 12-14 should explain why eval is unsafe, I think.
>
>page 38 mentions ways to convert strings to numbers, and
>the quote on page 39 should tell you why matt's "re + eval"
>approach can be dangerous...
>
>the next time someone points this out, you could answer
>"I know, I have the book" instead of "are you a troll"...
>
></F>
>
>


At the risk of continuing this...

The actual response I got was 

>Overkill. Unsafe. Ugly. Lame.

Do you think that's fair?

I wouldn't have worried apart from the "lame" comment.
--
Simon Foster
Cheltenham
England



More information about the Python-list mailing list