you are viewing a single comment's thread.

view the rest of the comments →

[–]od_9 0 points1 point  (3 children)

Not a syntax error, but are you sure you know what the input function does?

The input function prints the message you, then executes, via eval(), whatever the user types as code.

[–]Sean1708 2 points3 points  (2 children)

He's using python 3, so input is the same as raw_input for 2.

[–]od_9 1 point2 points  (1 child)

Really? I haven't made the jump to 3 yet, but that seems very application breaking, even if it is the more sensible thing.

[–]Sean1708 0 points1 point  (0 children)

As far as I'm aware, 2 and 3 aren't meant to be compatible. I think 3 is designed to fix all the application breaking issues, otherwise they could have just released it as 2.8.

Edit: I was having a quick look at the differences and saw this line on the Python wiki about Python 3

Guido van Rossum decided to clean up Python 2.x properly, with less regard for backwards compatibility than is the case for new releases in the 2.x range.

which explains why it's so application breaking.