Personally I'd expect these two lines to do the same thing, whatever that thing is:
path = 'C:\' path = ('C:\') Barney On Sat, 28 May 2022 at 12:59, Damian Shaw <damian.peter.s...@gmail.com> wrote: > That PR seems to make \' and \" not special in general right? > > I think this is a more limited proposal, to only change the behavior when > \ is at the end of a string, so the only behavior difference would never > receiving the error "SyntaxError: EOL while scanning string literal" > > In which case there should be no backwards compatibility issue. > > Damian > > On Sat, May 28, 2022 at 12:20 PM Serhiy Storchaka <storch...@gmail.com> > wrote: > >> 28.05.22 12:22, Steven D'Aprano пише: >> > Now that we have a new parser for CPython, can we fix the old gotcha >> > that raw strings cannot end in a backslash? >> > >> > Its an FAQ and has come up again on the bug tracker. >> > >> > https://docs.python.org/3/faq/design.html#id26 >> > >> > https://github.com/python/cpython/issues/93314 >> >> I do not think that we can allow this, and it is not related to parser. >> >> Few years ago I experimented with such change: >> https://github.com/python/cpython/pull/15217 >> >> You can see that it breaks even some stdlib code, and it will definitely >> break many third-party packages and examples. Technically we can do >> this, but the benefit is small in comparison with the cost. >> >> _______________________________________________ >> 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/WWWRFQK4AG52GD3L6WT6QLRGTY2VQRQ2/ >> Code of Conduct: http://python.org/psf/codeofconduct/ >> > _______________________________________________ > 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/O3STZ54BRQ3T352PIMNEZWCRBGP6FE2O/ > Code of Conduct: http://python.org/psf/codeofconduct/ >
_______________________________________________ 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/JWB74TLU5MKSYKCEW52AYYA7MHI2EENU/ Code of Conduct: http://python.org/psf/codeofconduct/