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: escape sequence r'\' giving compilation error
Type: compile error Stage: resolved
Components: 2to3 (2.x to 3.x conversion tool) Versions: Python 3.5
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: Kiran Kotari, r.david.murray
Priority: normal Keywords:

Created on 2015-12-30 01:37 by Kiran Kotari, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg257221 - (view) Author: Kiran Kotari (Kiran Kotari) Date: 2015-12-30 01:37
>>> '\test'.lstrip(r'\')
	       
SyntaxError: EOL while scanning string literal
msg257222 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2015-12-30 01:50
https://docs.python.org/3/faq/design.html?highlight=raw%20strings#why-can-t-raw-strings-r-strings-end-with-a-backslash
History
Date User Action Args
2022-04-11 14:58:25adminsetgithub: 70166
2015-12-30 01:50:38r.david.murraysetstatus: open -> closed

nosy: + r.david.murray
messages: + msg257222

resolution: not a bug
stage: resolved
2015-12-30 01:37:40Kiran Kotaricreate