Deprecate input()

Raymond Hettinger python at rcn.com
Sun Apr 14 18:16:43 EDT 2002


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>


Raymond Hettinger







More information about the Python-list mailing list