[issue31929] Raw strings create syntax error when last character is a single backslash

2017-11-02 Thread Barry A. Warsaw
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

[issue31929] Raw strings create syntax error when last character is a single backslash

2017-11-02 Thread Barry
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