Eric V. Smith <e...@trueblade.com> added the comment:
Simpler reproducer: >>> f"{foo)" File "<stdin>", line 1 f"{foo)" ^ SyntaxError: f-string: unmatched ')' I assume this is the same error as: >>> foo) File "<stdin>", line 1 foo) ^ SyntaxError: unmatched ')' But I don't yet understand why it's choosing to parse that expression fragment. I'm working on it. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue46260> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com