Deprecate input()
Bengt Richter
bokr at oz.net
Tue Apr 16 16:31:16 EDT 2002
On Tue, 16 Apr 2002 10:26:10 -0400, "Steve Holden" <sholden at holdenweb.com> wrote:
>"Alex Martelli" <aleax at aleax.it> wrote in ...
>> Magnus Lie Hetland wrote:
>> ...
>> >>I think the best name for what's now raw_input might be something
>> >>like getline.
>> >
>> > Or perhaps readline (à la file.readline)?
>>
>> I slightly prefer getline, because raw_input differs from a
>> somefile.readline -- the latter does not strip off the '\n',
>> while raw_input does -- each of the two slightly different
>> behaviors being optimal in its context. I think it would be
>> harder to teach if the names coincided.
>>
>There's also the minor difference that raw_input() takes an argument to be
>used as an interactive prompt!
>
get_line_promptly ? ;-)
Regards,
Bengt Richter
More information about the Python-list
mailing list