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 scoder
Recipients SilentGhost, barry, emilyemorehouse, eric.smith, larry, lukasz.langa, scoder, serhiy.storchaka, xtreak
Date 2019-05-05.17:56:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1557078988.1.0.528082531736.issue36798@roundup.psfhosted.org>
In-reply-to
Content
FWIW, I think it's equally reasonable to allow assignment expressions directly in f-strings, as it is to require parentheses with a reference to the invalidity of top-level expressions.

That makes me lean towards adding a parse-time error message that suggests the right way to do it, and leave it out as a feature for now, because it risks conflicting with ":" as format separator. We do not know yet if we will really need this feature. It's easier to add the feature later, than to remove it again in case we find that it gets in the way more than it helps.
History
Date User Action Args
2019-05-05 17:56:28scodersetrecipients: + scoder, barry, larry, eric.smith, SilentGhost, lukasz.langa, serhiy.storchaka, emilyemorehouse, xtreak
2019-05-05 17:56:28scodersetmessageid: <1557078988.1.0.528082531736.issue36798@roundup.psfhosted.org>
2019-05-05 17:56:28scoderlinkissue36798 messages
2019-05-05 17:56:27scodercreate