Index: src/org/python/core/PyUnicode.java =================================================================== --- src/org/python/core/PyUnicode.java (revision 3733) +++ src/org/python/core/PyUnicode.java (working copy) @@ -212,7 +212,8 @@ } public PyObject __call__() { - return((PyUnicode)self).unicode___str__(); + return new PyString(((PyUnicode)self).string); + //return ((PyUnicode)self).unicode___str__(); } } @@ -260,7 +261,8 @@ } public PyObject __call__() { - return new PyString(((PyUnicode)self).unicode_toString()); + //return new PyString(((PyUnicode)self).unicode_toString()); + return new PyString("u" + encode_UnicodeEscape(((PyUnicode)self).string, true)); } } @@ -1559,11 +1561,11 @@ } public PyString __repr__() { - return new PyUnicode("u" + encode_UnicodeEscape(string, true)); + return new PyString("u" + encode_UnicodeEscape(string, true)); } public String unicode_toString() { - return "u" + str_toString(); + return str_toString(); } final int unicode___cmp__(PyObject other) {