Jun 6, 2024
99% of the time, there is no use for eval()
or exec()
.
It isn't just the safety issue, though that's big, it's that these statements are very slow because they have to compile the statement into Python and then execute it every time the statement runs.
I'd be interested to see your examples of use, though! :-)