Issue 25978: escape sequence r'' giving compilation error (original) (raw)

This issue has been migrated to GitHub: https://github.com/python/cpython/issues/70166

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:25 admin set github: 70166
2015-12-30 01:50:38 r.david.murray set status: open -> closednosy: + r.david.murraymessages: + resolution: not a bugstage: resolved
2015-12-30 01:37:40 Kiran Kotari create