
June 29, 2010
2:34 p.m.
Mark Summerfield writes:
Python 3 has two string prefixes r"" for raw strings and b"" for bytes.
And you *can* combine them, but it needs to be in the right order (although I'm not sure that's intentional): steve@uwakimon ~ $ python3.1 Python 3.1.2 (release31-maint, May 12 2010, 20:15:06) [GCC 4.3.4] on linux2 Type "help", "copyright", "credits" or "license" for more information.
rb"a\rc" File "<stdin>", line 1 rb"a\rc" ^ SyntaxError: invalid syntax br"abc" b'abc' br"a\rc" b'a\\rc'
Watch out for that time machine!