Something seems not-quite-right:

$ /usr/local/jython-2.5.2-r7288/bin/jython
cmd started 2011 Fri Apr 22 08:20:53 PM
*sys-package-mgr*: can't create package cache dir, '/usr/local/jython-2.5.2-r7288/cachedir/packages'
Jython 2.5.2 (Release_2_5maint:7288, Apr 22 2011, 19:40:21)
[OpenJDK Server VM (Sun Microsystems Inc.)] on java1.6.0_20
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> filedes = os.open('/etc/protocols', os.O_RDONLY)
>>> data = filedes.read(100)
>>> data
java.nio.HeapByteBuffer[pos=0 lim=100 cap=100]
>>> type(data)
<type 'java.nio.HeapByteBuffer'>
>>> data[0]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'java.nio.HeapByteBuffer' object is unsubscriptable
>>> os.close(filedes)
>>>

data should be a str with around 100 characters in it, or at least something that quacks like a str.

Thoughts?

On Fri, Apr 22, 2011 at 5:45 PM, Philip Jenvey <report@bugs.jython.org> wrote:

Philip Jenvey <pjenvey@underboss.org> added the comment:

2.5.2 was released fairly recently, and now we're focused on 2.6 work, so I don't expect a 2.5.3 any time soon.

I did apply this change to the 2.5 branch however, if you want to build your own release from there.

_______________________________________
Jython tracker <report@bugs.jython.org>
<http://bugs.jython.org/issue1735>
_______________________________________



--
Dan Stromberg