Embedding a literal "\u" in a unicode raw string.

rmano romano.giannetti at gmail.com
Fri Mar 7 10:18:11 EST 2008


On Mar 4, 1:00 pm, NickC <ncogh... at gmail.com> wrote:
>
> Python 3.0a3+ (py3k:61229, Mar  4 2008, 21:38:15)
> [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.>>> r"\u"
> '\\u'
> >>> r"\uparrow"
> '\\uparrow'

Nice to know... so it seems that the 3.0 doc was not updated. I think
this is the correct
behaviour. Thanks




More information about the Python-list mailing list