Message398671
| 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 | <1627773157.61.0.221317043162.issue34013@roundup.psfhosted.org> |
| In-reply-to |
| Content | |
|---|---|
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 bug.py
File "/home/pablogsal/github/python/main/bug.py", 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 '('. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2021-07-31 23:12:37 | pablogsal | set | recipients: + 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:37 | pablogsal | set | messageid: <1627773157.61.0.221317043162.issue34013@roundup.psfhosted.org> |
| 2021-07-31 23:12:37 | pablogsal | link | issue34013 messages |
| 2021-07-31 23:12:37 | pablogsal | create | |