Message6511

Author dstromberg
Recipients dstromberg, pjenvey
Date 2011-04-23.03:32:30
SpamBayes Score 3.910615e-06
Marked as misclassified No
Message-id <BANLkTikKzffzrAJbxFcpRBtVCwzp+v+HKQ@mail.gmail.com>
In-reply-to <1303529461.78.0.705836882694.issue1735@psf.upfronthosting.co.za>
Content
Doh.  Thanks.

$ /usr/local/jython-2.5.2-r7288/bin/jython
cmd started 2011 Fri Apr 22 08:31:34 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 = os.read(filedes, 100)
>>> data
'# Internet (IP) protocols\n#\n# Updated from
http://www.iana.org/assignments/protocol-numbers and othe'
>>> filedes.close()
>>>

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

>
> Philip Jenvey <pjenvey@underboss.org> added the comment:
>
> You've mistakenly called <fileno>.read(100) instead of os.read(fileno, 100)
>
> Our file descriptors are weird =]
>
> _______________________________________
> Jython tracker <report@bugs.jython.org>
> <http://bugs.jython.org/issue1735>
> _______________________________________
>
Files
File name Uploaded
unnamed dstromberg, 2011-04-23.03:32:30
History
Date User Action Args
2011-04-23 03:32:30dstrombergsetrecipients: + dstromberg, pjenvey
2011-04-23 03:32:30dstromberglinkissue1735 messages
2011-04-23 03:32:30dstrombergcreate