Message341429
| Author | serhiy.storchaka |
|---|---|
| Recipients | SilentGhost, barry, emilyemorehouse, eric.smith, larry, lukasz.langa, serhiy.storchaka |
| Date | 2019-05-05.11:25:06 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1557055507.01.0.650400128916.issue36798@roundup.psfhosted.org> |
| In-reply-to |
| Content | |
|---|---|
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' |
|
| History | |||
|---|---|---|---|
| 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 | |