Barry A. Warsaw added the comment:
This is defined behavior, not a bug. See the end of the section on string
literals:
https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals
--
nosy: +barry
resolution: -> not a bug
stage: -> resolved
status: open -> clo
New submission from Barry :
Raw strings create syntax error when last character is a backslash (\).
This problem seems to exist across all versions of python (that I have access
to)
Sample Code:
-
Under Windows Python 2.7.3
Works Cor