1
According to the Python 2.x documentation, it is recommended to use the function raw_input
instead of input
. Conversely, in the Python 3.x documentation, the function raw_input
doesn’t even appear. Then the function input
in Python 3.x replaces function raw_input
?
I wouldn’t say they took out the input because it’s a useless function. The bigger problem is that the
eval
ofinput
in Python 2.x allows the user to execute arbitrary Python code. This can be very dangerous.– hugomg