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 samuelcolvin
Recipients r.david.murray, samuelcolvin
Date 2016-12-08.15:25:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1481210712.4.0.432312389966.issue28904@psf.upfronthosting.co.za>
In-reply-to
Content
I see, I hadn't appreciated fstrings where entirely different and more powerful than format(), I'll close this.

For anyone else coming to this, with fstrings in >=3.6 you can do:

In [4]: value = [1,2, 3]

In [5]: f'The value is {value}.'
Out[5]: 'The value is [1, 2, 3].'

In [6]: f'The value is {len(value)}.'
Out[6]: 'The value is 3.'
History
Date User Action Args
2016-12-08 15:25:12samuelcolvinsetrecipients: + samuelcolvin, r.david.murray
2016-12-08 15:25:12samuelcolvinsetmessageid: <1481210712.4.0.432312389966.issue28904@psf.upfronthosting.co.za>
2016-12-08 15:25:12samuelcolvinlinkissue28904 messages
2016-12-08 15:25:12samuelcolvincreate