Use of eval in Python
eval and exec are handy quick-and-dirty way to get some source code dynamically, maybe munge it a bit, and then execute it — but they’re hardly ever the best way, especially in production code as opposed to “quick-and-dirty” prototypes &c. For example, if I had to deal with such dynamic Python sources, I’d reach for … Read more