Message341429
You can use it in parenthesis:
>>> f'{(x:=10)}'
'10'
It should be explicitly documented, that what looks like the assignment operator is not always the assignment operator in f-strings.
>>> x = 10
>>> f'{x:=10}'
' 10' |
|
Date |
User |
Action |
Args |
2019-05-05 11:25:07 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, barry, larry, eric.smith, SilentGhost, lukasz.langa, emilyemorehouse |
2019-05-05 11:25:07 | serhiy.storchaka | set | messageid: <1557055507.01.0.650400128916.issue36798@roundup.psfhosted.org> |
2019-05-05 11:25:06 | serhiy.storchaka | link | issue36798 messages |
2019-05-05 11:25:06 | serhiy.storchaka | create | |
|