A bug for raw string literals in Py3k?

Yingjie Lan lanyjie at yahoo.com
Sun Oct 31 08:23:36 EDT 2010


> > So I suppose this is a bug?
> 
> It's not, see
> 
> http://docs.python.org/py3k/reference/lexical_analysis.html#literals
> 
> # Specifically, a raw string cannot end in a single backslash

Thanks! That looks weird to me ... doesn't this contradict with:

All backslashes in raw string literals are interpreted literally.
(see http://docs.python.org/release/3.0.1/whatsnew/3.0.html):

Best,

Yingjie



      



More information about the Python-list mailing list