28.05.20 22:26, Vito De Tullio пише:
Hi.
Just a question about the new PEG parser: will it support lone slash in
raw strings?
the fact that r'\' doesn't work as expected it's a strange exception to
remember.
As others said, this is a part of the tokenizer. I once experimented
with changing the tokenizer to make a backslash always inert in raw
strings. This change breaks code in ~15 files in the stdlib and tests,
so it would likely break a large amount of user code. The cost is too high.
https://github.com/python/cpython/pull/15217
_______________________________________________
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/MBCBDAJROOZD52P3OUSGC6BHMFZEJQC3/
Code of Conduct: http://python.org/psf/codeofconduct/