On 2020-06-16 2:37 a.m., Stephen J. Turnbull wrote:
Soni L. writes:

  > so I propose a \z string escape which lets me write the above as shown
  > below:
  >
  >                  """switches to toml config format. the old 'repos' \z
  >                  table is preserved as 'repos_old'"""

We already have that, if you don't care about left-alignment:

>>> """123456789\
... abcdefghi"""
'123456789abcdefghi'
>>>
So '\z' would only give us removal of indentation whitespace from the
string.  Too much magic, and it has the same problem that trailing '\'
has: most people will have to intentionally look for it to see it
(though it's easier to spot than trailing '\' for me).
That's a -1 for me.

Explicit is better than implicit.

and \z is more explicit than #cont

Steve
_______________________________________________
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/DB6ICUF5GNYRIWYWIOZJYK32M6IW62OL/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to