Message9282

Author zyasoft
Recipients Arfrever, jeff.allen, zyasoft
Date 2014-12-31.16:31:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1420043481.62.0.0238890688627.issue2239@psf.upfronthosting.co.za>
In-reply-to
Content
The problem with returning encoded strings, vs unicode, is that we cannot simply use the results of Python os operations, including ones that build on it, like glob, with Java IO, since they do not know about encoded strings.

For once, this may be one advantage of the conflation of strings and Unicode strings in Python 2.x. With Jython 3.x, there will also be a seamless transition, since it will be unicode anyway unless bytes are asked for specifically.

The other advantage is that this is then an easy fix, per the diff in my earlier message. Getting similar Java IO seamlessness with returning encoded strings from os.listdir is involved (of unknown scope), and doesn't correspond to anything else we have done. But Jython has always tried to make for a seamless experience between Python and Java; is it why people use Jython.

Boundaries always present challenges like these. Providing unicode simplifies what we need to do.
History
Date User Action Args
2014-12-31 16:31:21zyasoftsetmessageid: <1420043481.62.0.0238890688627.issue2239@psf.upfronthosting.co.za>
2014-12-31 16:31:21zyasoftsetrecipients: + zyasoft, jeff.allen, Arfrever
2014-12-31 16:31:21zyasoftlinkissue2239 messages
2014-12-31 16:31:21zyasoftcreate