[Python-Dev] deprecate input()?

Skip Montanaro skip@pobox.com
Thu, 17 Jan 2002 12:36:59 -0600


    Guido> Why?  I imagine this is only used for interactive input, and then
    Guido> 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.

    Guido> I don't see the security problem.  Can you explain a scenario
    Guido> where this causes a security risk?  If the user of the program
    Guido> types something evil in the input box they screw themselves!

Fine.  Let's drop it.

Skip