Skip to content

Conversation

@lysnikolaou
Copy link
Member

@lysnikolaoulysnikolaou commented Oct 27, 2020

  • Implement running the parser a second time for the errors messages

The first parser run is only responsible for detecting whether
there is a SyntaxError or not. If there isn't the AST gets returned.
Otherwise, the parser is run a second time with all the invalid_*
rules enabled so that all the customized error messages get produced.

(cherry picked from commit bca7014)

https://bugs.python.org/issue42123

…es on the second run (pythonGH-22111) * Implement running the parser a second time for the errors messages The first parser run is only responsible for detecting whether there is a `SyntaxError` or not. If there isn't the AST gets returned. Otherwise, the parser is run a second time with all the `invalid_*` rules enabled so that all the customized error messages get produced. (cherry picked from commit bca7014)
@lysnikolaoulysnikolaou merged commit 24a7c29 into python:3.9Oct 28, 2020
@lysnikolaoulysnikolaou deleted the backport-bca7014-3.9 branch October 28, 2020 00:14
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@lysnikolaou@pablogsal@the-knights-who-say-ni@bedevere-bot