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 Lewis Ball
Recipients Alexey Burdin, Lewis Ball, taleinat, terry.reedy
Date 2020-07-26.23:35:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1595806502.22.0.563115706068.issue41388@roundup.psfhosted.org>
In-reply-to
Content
Okay that makes sense. Removing things from _synchre would slow down the matching slightly, although the matching still seems plenty fast enough when done inside an if clause at the moment, so I'm not sure how noticeable the removal of `else` would be. One thing could be to search for `else:` instead of just `else` in _synchre, as only the former indicates the start of a new statement (although I guess it would actually have to check for `else[\s\\]*:` or something).

Like you say though, if there are other more pressing issues with the matching then maybe it is worth fixing them all at the same time. Happy to help with that if needed.
History
Date User Action Args
2020-07-26 23:35:02Lewis Ballsetrecipients: + Lewis Ball, terry.reedy, taleinat, Alexey Burdin
2020-07-26 23:35:02Lewis Ballsetmessageid: <1595806502.22.0.563115706068.issue41388@roundup.psfhosted.org>
2020-07-26 23:35:02Lewis Balllinkissue41388 messages
2020-07-26 23:35:02Lewis Ballcreate