Apparently, the following is the valid syntax:
my_string = b\'The string\'
I would like to know:
b
It turns it into a bytes literal (or str in 2.x), and is valid for 2.6+.
bytes
str
The r prefix causes backslashes to be "uninterpreted" (not ignored, and the difference does matter).
r