[Web-SIG] Returned application object and fileno.

Andrew Eland andrew at andreweland.org
Wed Sep 1 11:17:05 CEST 2004


Alan Kennedy wrote:

> Problem is that jython doesn't support file descriptors, or the fileno() 
> method. If you invoke fileno() on an org.python.core.PyFile, you get an 
> Py.IOError("fileno() is not supported in jpython") exception.

I guess the fileno() method could be renamed something like os_file() or 
os_stream(). CPython could return a file descriptor, Jython could return 
something like a java.nio.Channel, IronPython could return a 
System.IO.Stream, or something like that.

   -- Andrew (http://www.andreweland.org)


More information about the Web-SIG mailing list