≈ the.bay.news

Error message for missing semicolon is unhelpful when the missing semicolon would be at the end of line

Discussions on Python.org
Error message for missing semicolon is unhelpful when the missing semicolon would be at the end of line
This file def hello(arg1="x", arg2="y"): print(arg1) print(arg2) var1 = "a" var2 = "b" hello( a b ) Shows the following error: File "[REDACTED]", line 12 a ^ SyntaxError: invalid syntax. Perhaps you forgot a comma? However, that is somewhat unhelpful, because the a is actually fine, and it the error needs more context to fully understand what is going on. In my case, the issue was in a call to argparse and the error was File "[REDACTED]", line 42 description="Au...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.