Take a look at the following example:
In [1]: u'{u\'cname\': u"A\'B"}'
Out[1]: u'{u\'cname\': u"A\'B"}'
In [2]: u'{u\'cname\': uA\'B}'
Out[2]: u"{u'cname': uA'B}"
As you can see, the first string has additional pair of "
in it, and it looks like this change is causing the entire escape logic to be altered - in the second example, there are no backslashed printed, while in the first one there are.
Why does this happen?
Thanks!