[Python-Dev] PEP 498: Naming

Eric V. Smith eric at trueblade.com
Tue Sep 8 16:42:24 CEST 2015


On 09/08/2015 10:20 AM, Alexander Belopolsky wrote:
> 
> On Tue, Sep 8, 2015 at 2:37 AM, Mike Miller <python-ideas at mgmiller.net
> <mailto:python-ideas at mgmiller.net>> wrote:
> 
>     To my knowledge there was i for interpolation, t for template, and e
>     for expression suggested.  Any better ideas?
> 
> 
> I believe someone suggested !"..." as well.   I still think f"..."
> notation is the best as long as these elements are called "format
> strings" in the documentation.  After all, we don't call a unicode
> string "u-string" or bytes a "b-string".  Given enough imagination
> someone may find not-safe-for-work associations in those abbreviations
> as well.

Agreed. I discussed it with Guido offline, and we agreed on sticking
with f"" to tie in with str.format(), format(), __format__(), and format
strings.

Eric.



More information about the Python-Dev mailing list