Pablo Galindo Salgado <pablog...@gmail.com> added the comment:
This is a tricky one because the tokenizer doesn't see the enclosed parentheses because is actually closed (the second print has two ')' parentheses). This is tricky indeed because the parser is parsing the ( after the print as a group, not as a call, and indentation doesn't matter in the group. We can indeed revert the PR but I'm afraid that you can use this pattern to actually trigger a bunch of other custom error messages where they should not. ---------- _______________________________________ 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