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 eric.smith
Recipients BTaskaya, Erik Cederstrand, eric.smith, pablogsal
Date 2019-12-04.20:05:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1575489926.02.0.265194876806.issue38964@roundup.psfhosted.org>
In-reply-to
Content
Yes, moving f-strings to the grammar would be a huge change, and not just for CPython.

I discussed it at the last PyCon with the authors of various editors (for syntax highlighting) and other tools that parse python code. No one was hugely opposed to it, and I think even one person was very excited about it. But it's not a step to be taken lightly. I don't think I've discussed it with any other Python implementors outside of CPython.

My biggest concern is that it makes naive string recognition fail. For example, this would become a valid f-string:
f'{fn('some string')}'
while
'{fn('some string')}'
is not a valid string.

I now I think I've completely derailed this bug report. I think the action item here is for me to finish up my better error reporting.
History
Date User Action Args
2019-12-04 20:05:26eric.smithsetrecipients: + eric.smith, Erik Cederstrand, pablogsal, BTaskaya
2019-12-04 20:05:26eric.smithsetmessageid: <1575489926.02.0.265194876806.issue38964@roundup.psfhosted.org>
2019-12-04 20:05:25eric.smithlinkissue38964 messages
2019-12-04 20:05:25eric.smithcreate