On Thu, Oct 22, 2020, at 21:00, Steven D'Aprano wrote: > "Who"? Syntax is a person now? > > For what it's worth, I don't think escaping special symbols is ugly. > More like homely. It does the job, plainly and simply, but I don't think > it's especially good looking. Every other character stands for itself, > with this handful of exceptional cases.
I suspect that calling this particular syntax ugly is picking at a bit of an open wound in the history f-string implementation... consider precisely why the escaping syntax is {{}} instead of \{\}, and all the implications of that. (with the PEG parser, incidentally, I wonder if it may be time to revisit certain limitations in f-string syntax, though that particular one technically presents a backward compatibility problem that the rest don't) _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/OXIGDJWQNNONKKLJ47JLY3W57YEJZAQM/ Code of Conduct: http://python.org/psf/codeofconduct/