Wow, this should be so simple, but it\' just not working. I need to inset a \"\\\" into a string (for a Bash command), but escaping just doesn\'t work.
>>&
'tes\\ting' is correct, but you are viewing the repr output for the string, which will always show escape characters.
'tes\\ting'
repr
>>> print 'tes\\ting' tes\ting