Raw string printing
alexandre.badez at gmail.com
Tue Sep 25 14:32:21 CEST 2007
On Sep 25, 2:24 pm, Peter Otten <__pete... at web.de> wrote:
> Alexandre Badez wrote:
> > I would like to do something like:
> > s = r"a\tb\n"
> > print unraw(s) # <= this is the "magic" function I'm searching for
> > # result with
> > a b
> > n
> > Does any of you know how to do it properly ?
> >>> print r"a\tb\nx".decode("string-escape")
> a b
More information about the Python-list