I wantd to store the string
'self' in a variable, which is later used in setting a header.
My first attempts all resulted in just
self (note the absense of the single quotes:
str("'self'") str(\'self\') str("\'self\'")
And if I try
it results in
Eventually I got it to work with
Why do I need to double escape the single quotes inside of double quotes? I wasn’t able to find any documentation that explains that.