Who uses input()? [was Re: question on "input"]

Michael Hoffman cam.ac.uk at mh391.invalid
Thu Jul 14 08:00:34 EDT 2005


Devan L wrote:
> Use raw_input instead. It returns a string of whatever was typed. Input
> expects a valid python expression.

Who actually uses this? It's equivalent to eval(raw_input(prompt)) but 
causes a lot of newbie confusion. Python-dev archives revealed that 
someone tried to get this deprecated but Guido disagreed.
-- 
Michael Hoffman



More information about the Python-list mailing list