Newbie question about evaluating raw_input() responses

Carlos Nepomuceno carlosnepomuceno at outlook.com
Wed May 22 18:55:59 EDT 2013


----------------------------------------
> From: alister.ware at ntlworld.com
[...]
> Kevin
>
> Please write out 1000 time (without using any form of loop)
>
> "NEVER use input in python <3.0 it is EVIL"*
>
> as Chris A point out it executes user input an can cause major damage
> (reformatting the hard disk is not impossible!)
>

Indeed! input is eval(raw_input())! lol 		 	   		  


More information about the Python-list mailing list