[Python-ideas] Draft PEP on string interpolation
Ron Adam
ron3200 at gmail.com
Thu Aug 27 04:40:35 CEST 2015
On 08/26/2015 10:06 AM, Eric V. Smith wrote:
>> A nice improvement to that would be to add a literal quote ability to
>> >the format language.
>> >
>> > i'This {"string":Q} will be translated'.+
> That would just work, without the :Q. Expressions cannot be translated,
> and "string" is an expression.
Not quite.. the {"string":Q} would include the quotes, while the
expression {"string"} would not include the quotes.
Cheers,
Ron
More information about the Python-ideas
mailing list