[issue27947] Trailing backslash in raw string format causes EOL

2016-09-02 Thread cfgbd
cfgbd added the comment: Thanks for comment. Here I got my answer from string docs. Even in a raw literal, quotes can be escaped with a backslash, but the backslash remains in the result; for example, r"\"" is a valid string literal consisting of two characters: a backslash and a double quote;

[issue27947] Trailing backslash in raw string format causes EOL

2016-09-02 Thread Tim Peters
Changes by Tim Peters : -- resolution: -> not a bug stage: -> resolved status: open -> closed versions: +Python 3.2 -Python 3.4 ___ Python tracker ___ _

[issue27947] Trailing backslash in raw string format causes EOL

2016-09-02 Thread Ammar Askar
Ammar Askar added the comment: This isn't a bug, in fact this very behavior is documented within the string docs, please read the last paragraph here: https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals -- nosy: +ammar2 title: Bug of python interpreter -