2 ms·
yes, basically eval is evil
by jgalt212 10y ago
yes, basically eval is evil
- xapata 10y agoAnd yet, eval is necessary for so many important things...
- masklinn 10y agoThat'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