Message357805
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:16 | eric.smith | set | recipients:
+ eric.smith, Erik Cederstrand, pablogsal, BTaskaya |
2019-12-04 13:23:16 | eric.smith | set | messageid: <1575465796.0.0.0071941609816.issue38964@roundup.psfhosted.org> |
2019-12-04 13:23:15 | eric.smith | link | issue38964 messages |
2019-12-04 13:23:15 | eric.smith | create | |
|