Ezio Melotti added the comment:
See
http://docs.python.org/faq/design.html#why-can-t-raw-strings-r-strings-end-with-a-backslash
--
nosy: +ezio.melotti
resolution: -> invalid
stage: -> committed/rejected
status: open -> closed
___
Python tracker
<
New submission from lilei :
$ python
Python 2.7.1 (r271:86832, Apr 16 2011, 23:27:12)
[GCC 3.4.5 20051201 (Red Hat 3.4.5-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print r'\'
File "", line 1
print r'\'
^
SyntaxError: EOL while scan