This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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
Priority: normal Keywords:

Created on 2007-04-25 18:04 by korka, last changed 2022-04-11 14:56 by admin. This issue is now closed.

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) * (Python committer) 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
2022-04-11 14:56:24adminsetgithub: 44898
2007-04-25 18:04:56korkacreate