3 ms·
Python eval really is dangerous
- brownbat 13y agoI liked David Goodger's attached comment, that the real problem is running eval / exec on untrusted input. There's probably a corollary that no input is trusted. But eh, I've had scratchpad scripts where I lazily used exec or eval on commands that were programmatically generated (not entered by user or from outside programs).