Hello,

I'd like to encode the string that outputs:

Hello
World!

to 'Hello\x0aWorld!', and the string that outputs:

Hello\World!

to 'Hello\\World!'.

Obviously, I want to be able to reverse the process.

I'm going to assume this has already been solved in Python.. But how?
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to