Pablo Galindo Salgado <pablog...@gmail.com> added the comment:
> but when you do the test to identify if an 'else' is missing, could the fact > that there is a colon instead of the expected 'else' be used to avoid > misidentifying this case? Yeah! That is what I was thinking. The key here is that the ':' is the only token that is valid after the construct, so anything else is a wrong 'if' expression, no matter what it is. ---------- stage: patch review -> _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44838> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com