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.13:23:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I agree that although the PEP says that's how it behaves, that shouldn't be prescriptive of the error message. Clearly we can be more helpful here.

I have a large, elaborate re-write of the error generating code that I've been working on, on and off for over a year, which would address this problem. I'm not sure when or if I'll finish it. It touches a lot of things, and my branch won't merge cleanly any more.

Additionally, the idea of moving f-strings into the Python grammar would also fix this problem. That might be a better way forward, although it has a number of downsides, too.
Date User Action Args
2019-12-04 13:23:16eric.smithsetrecipients: + eric.smith, Erik Cederstrand, pablogsal, BTaskaya
2019-12-04 13:23:16eric.smithsetmessageid: <>
2019-12-04 13:23:15eric.smithlinkissue38964 messages
2019-12-04 13:23:15eric.smithcreate