[Python-ideas] Briefer string format
Eric V. Smith
eric at trueblade.com
Mon Aug 3 04:43:50 CEST 2015
On 8/2/2015 4:56 PM, Sven R. Kunze wrote:
> On 01.08.2015 19:43, Eric V. Smith wrote:
>> Should we support !s and !r, like str.format does? It's not really
>> needed, since with f-strings you can just call str or repr yourself:
>
> Just to get a proper understanding here:
>
> What is the recommended usage? repr and str or !r and !s?
They're equivalent, so it wouldn't matter. I'd probably use !r and !s,
myself.
Eric.
More information about the Python-ideas
mailing list