Deprecate input()
Magnus Lie Hetland
mlh at vier.idi.ntnu.no
Mon Apr 15 07:35:24 EDT 2002
In article <a9cv63$qhu$1 at bob.news.rcn.net>, Raymond Hettinger wrote:
>The help and tutor maillists indicate that the use of input() rather than
>raw_input() is widespread. I think this function is so harmful and so
>likely to be used that it should be deprecated hasta pronto (right away).
>When really needed, eval(raw_input()) is easy enough to code and explicit
>about what it does.
>
><no wink -- this function needs to go away>
>
But (in the (very?) long run) I think that the name "input" should
then be used for what is now raw_input. I know -- breakage, and all
that... I just think it fairly odd to have *only* raw_input, since the
"raw" qualification then becomes fairly meaningless.
>Raymond Hettinger
- Magnus (who in his early Python days was very baffled by the name
"raw_input", until he found "input"...)
--
Magnus Lie Hetland The Anygui Project
http://hetland.org http://anygui.org
More information about the Python-list
mailing list