This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: support r"\"
Type: enhancement Stage:
Components: None Versions: Python 2.6
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: facundobatista, lidaobing
Priority: normal Keywords:

Created on 2008-07-04 11:00 by lidaobing, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg69249 - (view) Author: LI Daobing (lidaobing) Date: 2008-07-04 11:00
currently r"\" or r'\' is not a valid string literal and it is already
documented.

but this exception is not simple enough, it make users confused when
they found that r'C:\Program\Python\' does not work as expected.

please consider support this, thanks.
msg69253 - (view) Author: Facundo Batista (facundobatista) * (Python committer) Date: 2008-07-04 11:55
The "r" prefix changes how the escape sequences are interpreted after
the string literal has been parsed, it doesn't change how the literal
itself is actually parsed.

Fixing this will imply too much low level work, and it's easily solved
in other ways, so it's not foreseeable to change.

If you really want to push this, you should propose the change and how
to do it in python-ideas or python-dev.

Thank you!
History
Date User Action Args
2022-04-11 14:56:36adminsetgithub: 47531
2008-07-04 11:55:28facundobatistasetstatus: open -> closed
resolution: wont fix
messages: + msg69253
nosy: + facundobatista
2008-07-04 11:00:30lidaobingcreate