This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.smith
Recipients eric.smith, lys.nikolaou, pablogsal, terry.reedy
Date 2022-01-16.20:29:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1642364979.34.0.445322415598.issue46403@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2022-01-16 20:29:39eric.smithsetrecipients: + eric.smith, terry.reedy, lys.nikolaou, pablogsal
2022-01-16 20:29:39eric.smithsetmessageid: <1642364979.34.0.445322415598.issue46403@roundup.psfhosted.org>
2022-01-16 20:29:39eric.smithlinkissue46403 messages
2022-01-16 20:29:39eric.smithcreate