Dynamic comparison operators

Jon Clements joncle at googlemail.com
Fri May 25 18:44:42 EDT 2012


> 
> Any time you find yourself thinking that you want to use eval to solve a 
> problem, take a long, cold shower until the urge goes away.
> 
> If you have to ask why eval is dangerous, then you don't know enough 
> about programming to use it safely. Scrub it out of your life until you 
> have learned about code injection attacks, data sanitation, trusted and 
> untrusted input. Then you can come back to eval and use it safely and 
> appropriately.

I would +1 QOTW - but fear might have to cheat and say +1 to 2 paragraphs of the week :)

Jon.



More information about the Python-list mailing list