classification
Title: raw text can't end with backslash
Type: Stage:
Components: Interpreter Core Versions: Python 2.5
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, korka (2)
Priority: normal Keywords

Created on 2007-04-25 18:04 by korka, last changed 2007-04-25 19:36 by georg.brandl.

Messages (2)
msg31888 - (view) Author: lomm (korka) Date: 2007-04-25 18:04
somehow the interpreter thinks it's an escape for the last quote

print r'abc\'

  File "<stdin>", line 1
    print 'abc\'
               ^
SyntaxError: EOL while scanning single-quoted string

msg31889 - (view) Author: Georg Brandl (georg.brandl) Date: 2007-04-25 19:36
This is a tokenizer restriction and not considered a bug. Closing as "won't fix".
History
Date User Action Args
2007-04-25 18:04:56korkacreate