Closed pjritee closed 9 years ago
Fixed. Tell him thanks!
BTW - the student says (in reporting the error with the code I put in post, without the error = False line): When I submit my code for the "Raising an Exception" question in the "Classes, Error Handling and I/O" set, I get the following error:
Error in code: test not run (possibly infinite loop)
--------------------------------------------
---------------------------------------------
SyntaxError: invalid character in identifier (<student-code>, line 26)
The position of the syntax error does not change even if I add new lines above line 26 (I added them at like line 20, below the docstring). I've checked the tabs and white space (i converted to spaces in Sublime Text) and there doesn't appear to be spacing issues.
Running my code in IDLE appears to bring about the correct result.
I tested my fix with his code locally, so I dunno what's up with that. If he's updated MPT it should work fine :/
On Monday, March 9, 2015, Peter Robinson notifications@github.com wrote:
BTW - the student says (in reporting the error with the code I put in post, without the error = False line): When I submit my code for the "Raising an Exception" question in the "Classes, Error Handling and I/O" set, I get the following error:
Error in code: test not run (possibly infinite loop)
SyntaxError: invalid character in identifier (, line 26)
The position of the syntax error does not change even if I add new lines above line 26 (I added them at like line 20, below the docstring). I've checked the tabs and white space (i converted to spaces in Sublime Text) and there doesn't appear to be spacing issues.
Running my code in IDLE appears to bring about the correct result.
— Reply to this email directly or view it on GitHub https://github.com/CSSE1001/MyPyTutor/issues/151#issuecomment-77799939.
If it still happens after updating can you ask him to sync his code with the server so we can see exactly what he's got entered?
On Monday, March 9, 2015, Sean Purdon sean.purdon@gmail.com wrote:
I tested my fix with his code locally, so I dunno what's up with that. If he's updated MPT it should work fine :/
On Monday, March 9, 2015, Peter Robinson <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:
BTW - the student says (in reporting the error with the code I put in post, without the error = False line): When I submit my code for the "Raising an Exception" question in the "Classes, Error Handling and I/O" set, I get the following error:
Error in code: test not run (possibly infinite loop)
SyntaxError: invalid character in identifier (, line 26)
The position of the syntax error does not change even if I add new lines above line 26 (I added them at like line 20, below the docstring). I've checked the tabs and white space (i converted to spaces in Sublime Text) and there doesn't appear to be spacing issues.
Running my code in IDLE appears to bring about the correct result.
— Reply to this email directly or view it on GitHub https://github.com/CSSE1001/MyPyTutor/issues/151#issuecomment-77799939.
this comes from a posting on piazza (slightly modified).
The code is:
and when I choose this problem after saving this code (and restarting) it I get (in the terminal):