[Python-ideas] Let’s make escaping in f-literals impossible

אלעזר elazarg at gmail.com
Tue Aug 30 08:36:22 EDT 2016


> On Tue, Aug 30, 2016 at 3:13 PM Eric V. Smith <eric at trueblade.com> wrote:
> >On 08/30/2016 07:02 AM, Philipp A. wrote:
> > Also the name “f-strings” is really misleading: They’re composite
> > expressions that evaluate to strings. They can only be considered
> > strings if you have no braced code parts in them. So I’m also still in
> > favor of renaming them (e.g. to “f-literals”).
> I don't have much of an opinion here. I think there's not a lot of
> confusion to be had by calling them f-strings, but I think someone who
> works with teaching python might have a better handle on that.

The problem is that "literal" is a technical term in the domain of
compilers, and not a well known or self-explanatory term. Especially for
beginners. I'd suggest something like "Format expression".

~Elazar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160830/90022119/attachment.html>


More information about the Python-ideas mailing list