Lewis Ball <lrjb...@gmail.com> added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue41388>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to