Deprecate input()

Alex Martelli aleax at aleax.it
Tue Apr 16 10:16:18 EDT 2002


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.


Alex




More information about the Python-list mailing list