[Python-ideas] List Revolution

Massimo Di Pierro massimo.dipierro at gmail.com
Sat Sep 10 21:27:01 CEST 2011


On Sep 10, 2011, at 2:22 PM, Matt Billenstein wrote:

> On Sat, Sep 10, 2011 at 02:14:13PM -0500, Massimo Di Pierro wrote:
>> Not to open a can of worms but why not use eval in this example?
>> It is faster. It is 5x more compact. It allows me to take advantage of the
>> Python parser instead of reinventing the wheel. It is less error prone and
>> easier to understand. It is a python keyword.
> 
> I wouldn't worry too much about the implementation details of a clearly insane
> idea...

agreed

> And eval generally has high "code-smell" -- it can lead to code injection exploits.

Not in this example. So why not?
Any code can introduce vulnerabilities if incorrect.




More information about the Python-ideas mailing list