classification
Title: The raw string r'\' fails
Type: behavior Stage:
Components: Interpreter Core Versions: Python 2.5
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, passage
Priority: normal Keywords:

Created on 2008-01-31 22:26 by passage, last changed 2008-01-31 23:26 by georg.brandl. This issue is now closed.

Messages (2)
msg61936 - (view) Author: Neil Roques (passage) Date: 2008-01-31 22:26
Python's raw strings are supposed to prevent characters being
interpreted as special.  However entering the raw string r'\' into an
interactive session will result in:

Traceback (  File "<interactive input>", line 1
    r'\'
       ^
SyntaxError: EOL while scanning single-quoted string

Python seems to have escaped the close of the string, even though raw
strings are not supposed to ever escape characters.
msg61940 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-01-31 23:26
This is not easily fixable -- it has been discussed several times on
python-dev and won't change.
History
Date User Action Args
2008-01-31 23:26:17georg.brandlsetstatus: open -> closed
resolution: wont fix
messages: + msg61940
nosy: + georg.brandl
2008-01-31 22:26:01passagecreate