ERROR when hitting RETURN on INPUT

Steve Holden steve at
Sat Mar 11 11:25:25 CET 2006

ctilly at wrote:
> How do you prevent getting the following error when you hit the RETURN
> key on an empty INPUT prompt from windows?
> If I am at the Interactive Window and I type in: input("blah"), I get
> an input dialog.  If I then hit ENTER w/o keying in a value I get the
> following error.  WHY????
> SyntaxError: unexpected EOF while parsing
Because the input() function expects a Python expression that it can 
evaluate to return a result. You probably want raw_input() instead.

Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC/Ltd       
Love me, love my blog

More information about the Python-list mailing list