Message361703
It appears as if escaping the braces by doubling them up is not working properly if the braces are in a format specification within a f-string.
>>> print(f'Email:\n {C:{{v.name}} {{v.email}}|\n }')
Traceback (most recent call last):
File "bugreport.py", line 95, in <module>
print(f'Email:\n {C:{{v.name}} {{v.email}}|\n }')
NameError: name 'v' is not defined
The escaping works as expected when the string's format method is used. |
|
Date |
User |
Action |
Args |
2020-02-10 16:50:35 | jitterman | set | recipients:
+ jitterman |
2020-02-10 16:50:35 | jitterman | set | messageid: <1581353435.4.0.444515809874.issue39601@roundup.psfhosted.org> |
2020-02-10 16:50:35 | jitterman | link | issue39601 messages |
2020-02-10 16:50:35 | jitterman | create | |
|