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
[0] it also supports mapping and sequence lookups IIRC but that's about the same thing