Index: jython/src/org/python/core/PyObject.java =================================================================== --- jython/src/org/python/core/PyObject.java (revision 3541) +++ jython/src/org/python/core/PyObject.java (working copy) @@ -387,7 +387,17 @@ } public PyUnicode __unicode__() { - return new PyUnicode(__str__()); + PyObject func = __findattr__("__unicode__"); + if (func == null) { + return new PyUnicode(__str__()); + } else { + PyObject o = func.__call__(); + if (o instanceof PyUnicode) { + return (PyUnicode)o; + } else { + return new PyUnicode(o.toString()); + } + } } /**