Message6509

Author dstromberg
Recipients dstromberg, pjenvey
Date 2011-04-23.03:23:58
SpamBayes Score 3.88245e-13
Marked as misclassified No
Message-id <BANLkTi=91tgaVN028NJNiEessYanQYiozA@mail.gmail.com>
In-reply-to <1303519527.63.0.0162618333141.issue1735@psf.upfronthosting.co.za>
Content
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>
> _______________________________________
>
Files
File name Uploaded
unnamed dstromberg, 2011-04-23.03:23:58
History
Date User Action Args
2011-04-23 03:23:58dstrombergsetrecipients: + dstromberg, pjenvey
2011-04-23 03:23:58dstromberglinkissue1735 messages
2011-04-23 03:23:58dstrombergcreate