On Thu, 4 Aug 2005 jython-dev-request@... wrote:
> > Is not a unicode object a string object in unicode disguise?
> Yes, in fact it is even worse than that: a Jython 'str' object is a
> wrapper around Java's unicode-based String, and a Jython 'unicode'
> object is implemented as a thin wrapper around the jython 'str'
> object. We are going through these contortions in an attempt to make
> the CPython standard libraries and unit tests happier, however it
> looks like things are breaking down in this case.
Would it be worse to make a Jython 'str' object a wrapper around
a Java byte? It would mean reimplementing a lot of str functionality
in Java instead of reusing Java, but representation and behaviour would
naturally match CPython. I saw a ByteString class for java a while ago.
Stuart D. Gathman <stuart@...>
Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flamis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.