[Python-ideas] template strings
Yury Selivanov
yselivanov.ml at gmail.com
Thu Aug 20 20:08:12 CEST 2015
On 2015-08-20 4:39 AM, Nick Coghlan wrote:
> On 20 August 2015 at 06:32, Yury Selivanov <yselivanov.ml at gmail.com> wrote:
>> On 2015-08-19 2:11 PM, Eric V. Smith wrote:
>> [..]
>>> As you say, it would allow easy implementation of i18n on top of PEP 498.
>>
>> Right.
>>
>> One thing that bugs me about PEP 501, is that it introduces
>> yet another kind of strings -- i'' (in addition to f''
>> introduced by PEP 498, and existing b'', r'', u'').
> PEP 501 is *instead of* PEP 498 - it reuses the proposed machinery,
> not the syntax (I find the idea of adding yet another templating
> format abhorrent, which is why 501 proposes using the PEP 292 syntax
> as a shared abstraction over the str.format and bytes.__mod__
> formats).
>
>
Sorry Nick, it wasn't clear to me that PEP 501 supersedes
PEP 498 (although it's stated in its Abstract).
Yury
More information about the Python-ideas
mailing list