[New-bugs-announce] [issue1984] The raw string r'\' fails

Neil Roques report at bugs.python.org
Thu Jan 31 23:26:08 CET 2008


New submission from Neil Roques:

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.

----------
components: Interpreter Core
messages: 61936
nosy: passage
severity: minor
status: open
title: The raw string r'\' fails
type: behavior
versions: Python 2.5

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1984>
__________________________________


More information about the New-bugs-announce mailing list