Deprecate input()

Paul Rubin phr-n2002a at nightsong.com
Sun Apr 14 19:44:46 EDT 2002


"Raymond Hettinger" <python at rcn.com> writes:
> 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>

I agree with this.  Some other stuff like "smart cookies" also need to go away.



More information about the Python-list mailing list