On 5/28/2020 3:26 PM, Vito De Tullio wrote:
Just a question about the new PEG parser: will it support lone slash in
raw strings?
In 3.9, the new parser is intended to be a drop-in replacement. That is
still being worked on. For 3.10, user-visible changes can be
considered, but I have not seen any concrete proposals.
the fact that r'\' doesn't work as expected it's a strange exception to
remember.
That said, this seems like a scanner, not a compiler issue.
>>> print(repr(r'\'))
SyntaxError: EOL while scanning string literal
The python syntax highlighter marks all of "r'\')) as part of the
string, ... but
>>> exec(compile("print(repr(r'\'))", '', 'exec'))
''
--
Terry Jan Reedy
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at
https://mail.python.org/archives/list/python-dev@python.org/message/EINILU4KVSHTVBQBILA7IC6MWSPCYIBL/
Code of Conduct: http://python.org/psf/codeofconduct/