A bug for raw string literals in Py3k?

Yingjie Lan lanyjie at yahoo.com
Sun Oct 31 11:54:10 CET 2010


Hi,

I tried this in the IDLE (version 3.1.2) shell:

>>> r'\'
SyntaxError: EOL while scanning string literal

But according to the py3k docs 
(http://docs.python.org/release/3.0.1/whatsnew/3.0.html):

All backslashes in raw string literals are interpreted literally.

So I suppose this is a bug?

Yingjie


      



More information about the Python-list mailing list