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 pablogsal
Recipients CuriousLearner, ammar2, aroberge, brandtbucher, corona10, eric.smith, iritkatriel, lys.nikolaou, miss-islington, ncoghlan, nitishch, pablogsal, piyushhajare, serhiy.storchaka, terry.reedy, veky, xtreak
Date 2021-07-31.23:12:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Is not about the eagerness, the problem is that it matches *first*, the parser never gets to the indentation error in the second phase.

For example, with:

print(3) $ 34

❯ ./python
  File "/home/pablogsal/github/python/main/", line 1
    print(3) $ 34
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?

The problem is that is matching the (3) as print + a number between parentheses. We just need to disallow to continue matching on the right
if it finds a '('.
Date User Action Args
2021-07-31 23:12:37pablogsalsetrecipients: + pablogsal, terry.reedy, ncoghlan, eric.smith, aroberge, serhiy.storchaka, veky, ammar2, CuriousLearner, corona10, lys.nikolaou, nitishch, miss-islington, xtreak, piyushhajare, brandtbucher, iritkatriel
2021-07-31 23:12:37pablogsalsetmessageid: <>
2021-07-31 23:12:37pablogsallinkissue34013 messages
2021-07-31 23:12:37pablogsalcreate