This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:07serhiy.storchakasetrecipients: + serhiy.storchaka, barry, larry, eric.smith, SilentGhost, lukasz.langa, emilyemorehouse
2019-05-05 11:25:07serhiy.storchakasetmessageid: <1557055507.01.0.650400128916.issue36798@roundup.psfhosted.org>
2019-05-05 11:25:06serhiy.storchakalinkissue36798 messages
2019-05-05 11:25:06serhiy.storchakacreate