Samuel Colvin added the comment: 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.' ---------- resolution: -> fixed status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28904> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com