News for hackers. Stuff that matters.
Re:Be Careful with Python's New-Style String Format by jgalt212 on Saturday December 31, 2016 @08:27PM (#13294205)
yes, basically eval is evil
Re:Be Careful with Python's New-Style String Format by masklinn on Sunday January 01, 2017 @08:15AM (#13295634)
That's not even eval, the entire thing is a series of dynamic attribute lookups[0], you can trivially implement that in pure Python without needing to `eval` anything.

[0] it also supports mapping and sequence lookups IIRC but that's about the same thing

Re:Be Careful with Python's New-Style String Format by xapata on Sunday January 01, 2017 @03:06AM (#13295065)
And yet, eval is necessary for so many important things...