Eric V. Smith <[email protected]> added the comment:
This is not the appropriate place to ask for help in debugging your code. I
suggest you ask on the python-list mailing list.
The error is that you're missing a bunch of right parenthesis in the isWinner()
function.
I do think "Syntax Error" isn't the best error message, though.
Here's a simplified reproducer:
---------------
def f():
return ((1==2)
x
---------------
Note that in 3.11 (the only other version I have handy), the error is:
File "foo.py", line 2
return ((1==2)
^
SyntaxError: '(' was never closed
I suspect that we won't fix this in old versions of python.
----------
components: +Parser -IDLE
nosy: +eric.smith, lys.nikolaou, pablogsal -1071754
title: SyntaxError for no reason -> Unhelpful SyntaxError
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue46403>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com