$ /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
>>> filedes.close()
>>>
On Fri, Apr 22, 2011 at 8:31 PM, Philip Jenvey
<report@bugs.jython.org> wrote:
You've mistakenly called <fileno>.read(100) instead of os.read(fileno, 100)
Our file descriptors are weird =]
--
Dan Stromberg