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 2015-12-30 01:50 by r.david.murray. 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
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