[issue42123] Run parser twice; enable invalid_* rules only on the second run
Lysandros Nikolaou
report at bugs.python.org
Mon Oct 26 18:41:15 EDT 2020
Lysandros Nikolaou <lisandrosnik at gmail.com> added the comment:
We do not have a big corpus of SyntaxErrors to test against, but some manual testing of running a file with a SyntaxError after a long complex line 1000 times shows no slowdown.
We keep the token stream for the second run, so we don't need to run the tokenizer all over again and the parsing is done much more quickly.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42123>
_______________________________________
More information about the Python-bugs-list
mailing list