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
[ Parent
| on HN ]
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