Converting a hex string to a number

Fredrik Lundh fredrik at pythonware.com
Wed Jul 10 05:28:31 EDT 2002


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>





More information about the Python-list mailing list