11 odpowiedzi
+ 3
Combining it with input makes it dangerous and then stuff like this can happen:
https://www.xkcd.com/327/
+ 2
I linked xkcd because all those "bad boys" can be rendered harmless by sanitizing the input.
+ 1
Seems you can do harm against eval even with limited globals if you're tricky.
https://nedbatchelder.com/blog/201206/eval_really_is_dangerous.html
- 1
It safe your memory consumption. It is like a type casting, it is safe for us. Don't worry....