Message341466
Because of the backward compatibility issues, I'm not going to change the f-string parser for this. We'll just need to document the requirements for using parens if you want to use :=. This is similar to the existing documentation about lambdas and f-strings in https://docs.python.org/3/reference/lexical_analysis.html#formatted-string-literals
Patches welcome!
To be clear: like lambdas, this is just limitation of embedding expressions inside strings, and it's also a limitation because format specs can start with equal signs. It's not a restriction because I think f-strings shouldn't contain "top-level" := expressions. |
|
Date |
User |
Action |
Args |
2019-05-05 18:30:18 | eric.smith | set | recipients:
+ eric.smith, barry, scoder, larry, SilentGhost, lukasz.langa, serhiy.storchaka, emilyemorehouse, xtreak |
2019-05-05 18:30:18 | eric.smith | set | messageid: <1557081018.72.0.0698804542806.issue36798@roundup.psfhosted.org> |
2019-05-05 18:30:18 | eric.smith | link | issue36798 messages |
2019-05-05 18:30:18 | eric.smith | create | |
|