I need python to generate exactly such string literal:
e.b=\"e\"
But I can't come up with idea how to do so. I was trying:
r'e.b=\"e\"' => e.b=\\"e\\"
"""e.b=\"e\"""" => e.b="e"
And many other possibilities but any ends up with exactly e.b=\"e\"
Any ideas?
r'e.b=\"e\"') should be right. When the python interpreter prints, it will show single` characters as\`, but if you output it to a file, it should really be just a single ``.print, or writing it to a file. And print its length, which should be 9.