[Python-Dev] deprecate input()?
Guido van Rossum
guido@python.org
Thu, 17 Jan 2002 12:49:26 -0500
> Guido> Why? I imagine this is only used for interactive input,
> Guido> and then it's the computer's owner who is typing.
>
> Yes, but what if the program containing calls to input() get shipped
> to someone else's computer? It just seems to me that a) input is
> almost never what you want to call and that b) it would seem to a
> naive programmer to be the correct way to ask the user for a line of
> input.
I don't see the security problem. Can you explain a scenario where
this causes a security risk? If the user of the program types
something evil in the input box they screw themselves!
--Guido van Rossum (home page: http://www.python.org/~guido/)