Python input problems

Started by
3 comments, last by return0 12 years, 1 month ago
I have a strange problem with Python. When I use the input command, it works on the python shell, but when I use it as an executable, it crashes. Could someone help me with it?
Advertisement
Can you post the exact program (hopefully a single line) and the commands you are using to compile it? I haven't seen anything of this sort before, but if I can reproduce your crash, I might be able to help.
input()

I also get this line in the executed file:
Syntax Error: unexpected EOF while parsing.
Then it quickly closes. I'm using Python 3.2.
I can't reproduce it with that much information.

Wild guess: Perhaps you are missing an end-of-line character?
If not using python 3 don't use input().

This topic is closed to new replies.

Advertisement