Raw string printing

A

Alexandre Badez

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 ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top