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 terry.reedy
Recipients Arfrever, Trundle, aroberge, benjamin.peterson, eric.snow, georg.brandl, iritkatriel, loewis, marienz, ncoghlan, orsenthil, pablogsal, pitrou, r.david.murray, terry.reedy
Date 2021-07-08.03:41:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1625715662.26.0.914510612252.issue11343@roundup.psfhosted.org>
In-reply-to
Content
I retract my original comment as I now agree with SyntaxError + distinct message.

Given Irit's report, I think the remaining question is whether 

A. The implication that 'too many nested parentheses' is compiler specific is strong enough, and any thing further should be left to 3rd parties to explain, and this issue should be closed as 'out of date'.

B. We should be explicit and add something like 'for this compiler'.

Since Pablo has been working on improving error messages, I would give his opinion high weight.

To find the actual limit, I did the following with Win 10, 3.10.0b3, IDLE:

>>> def f(n):
...     print(eval('('*n + ')'*n"))
... 
And after some trials, found
>>> f(200)
()
>>> f(201)
Traceback (most recent call last):
  File "<pyshell#56>", line 1, in <module>
    f(201)
  File "<pyshell#42>", line 2, in f
    print(eval('('*n + ')'*n))
  File "<string>", line 1
    ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
                                                                                                                                                                                                                                                                                                                                                                                                                        ^
SyntaxError: too many nested parentheses

The error is detected in 'string' line 1, 1-based offset 201, at the final '('.  There are 200 spaces before the caret but they are not obvious in this box, which does not wrap spaces properly. The end_lineno and end_offset are None, None rather than the 1,202 I expected.
History
Date User Action Args
2021-07-08 03:41:02terry.reedysetrecipients: + terry.reedy, loewis, georg.brandl, ncoghlan, orsenthil, marienz, pitrou, benjamin.peterson, aroberge, Arfrever, r.david.murray, Trundle, eric.snow, pablogsal, iritkatriel
2021-07-08 03:41:02terry.reedysetmessageid: <1625715662.26.0.914510612252.issue11343@roundup.psfhosted.org>
2021-07-08 03:41:02terry.reedylinkissue11343 messages
2021-07-08 03:41:01terry.reedycreate