With Python 3.13 (and perhaps earlier) the example in chapter 6 of a multiline syntax error no longer works:
>>> (1, 2
... print(a)
...
File "<python-input-0>", line 1
(1, 2
^
SyntaxError: '(' was never closed
Python is smart enough to know that the error is happening on the line above and no longer points to print(a) as the culprit.
With Python 3.13 (and perhaps earlier) the example in chapter 6 of a multiline syntax error no longer works:
Python is smart enough to know that the error is happening on the line above and no longer points to
print(a)as the culprit.