+ 1

Eval

What does eval func actually do?

4th Sep 2018, 6:28 PM
Ilyich
3 Respostas
+ 7
It takes a string and "runs" it as if it were a line of code/expression.
4th Sep 2018, 10:58 PM
Eduardo Petry
Eduardo Petry - avatar
+ 3
I never heard about this func, one more thing i learn here, thanks ☺☺☺
4th Sep 2018, 11:23 PM
Luiz Santos
Luiz Santos - avatar
+ 2
The purpose of the eval() function is to allow Python to run Python code within itself. Keep in mind, eval() is to be used with much caution as it can easily introduce many vulnerabilities.
4th Sep 2018, 7:44 PM
Dread
Dread - avatar