A bug for raw string literals in Py3k?

John Machin sjmachin at lexicon.net
Sun Oct 31 17:41:15 EDT 2010


On Oct 31, 11:23 pm, Yingjie Lan <lany... at yahoo.com> wrote:
> > > 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.
> (seehttp://docs.python.org/release/3.0.1/whatsnew/3.0.html):

All backslashes in syntactically-correct raw string literals are
interpreted literally.



More information about the Python-list mailing list