[Python-Dev] deprecate input()?
Skip Montanaro
skip@pobox.com
Thu, 17 Jan 2002 11:40:19 -0600
>> I just responded to a question on c.l.py a user had about feeding
>> empty strings to input(). While he didn't say why he called input(),
>> I suspect he thought the semantics were more like raw_input().
>>
>> In these days of widespread Internet nastiness, shouldn't input() be
>> deprecated?
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.
Skip