Create a backslash-escaped version of a string?

boblatest boblatest at googlemail.com
Mon Feb 8 10:50:55 EST 2010


On Feb 8, 12:28 pm, Chris Rebert <c... at rebertia.com> wrote:
> print a.encode("string-escape")

How could I miss that? I was on that doc page already. Should have
typed "/escape" in the browser ;-)

Thanks,
robert



More information about the Python-list mailing list