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.
>>&
b is fine in the second example, you see two slashes because you're printing the representation of b, so slashes are escaped in it too.
>>> b 'tes\\ting' >>> print b tes\ting >>>