Raw string printing

Alexandre Badez alexandre.badez at gmail.com
Tue Sep 25 14:08:02 CEST 2007


Hy !

I would like to do something like:

s = r"a\tb\n"

print s
# result with
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 ?




More information about the Python-list mailing list