PyUnicode.__repr__

__repr__()

Used when repr(object) is used.

Comments

Note the format is L'string' and that the string portion is currently not escaped, as Python does for normal strings.