424,269 Members | 1,272 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,269 IT Pros & Developers. It's quick & easy.

EOF in multi line statement!!??

P: 7
I keep on getting an errror saying 'EOF in multi-line statement' when i run my code. I'm just learning python and it keeps getting in the way. What could be the cause of the error?
Jun 28 '08 #1
Share this Question
Share on Google+
2 Replies

P: 7
I found out the problem-i'd forgotten to close a pair of double brackets lol.
BTW-why does this error stem from that?
Jun 28 '08 #2

P: 3
I found this just now and it helped me so here is my explaination as to why it happens:
if you don't put in a final bracket eg
"""This method is called when the link is clicked"""

would make the compiler keep looking for the closing bracket but reach the end of the file, called reaching EOF, while still looking for the closing bracket in what it thinks must be a statement running across multiple lines. Perhaps it can happen with some other types of paired symbols in the code too?
Cheers Nigel
Nov 13 '18 #3

Post your reply

Sign in to post your reply or Sign up for a free account.