Message4454

Author amak
Recipients amak, billiejoex, irmen, zyasoft
Date 2009-04-06.09:33:42
SpamBayes Score 6.7581465e-07
Marked as misclassified No
Message-id <1239010423.52.0.61563554719.issue1291@psf.upfronthosting.co.za>
In-reply-to
Content
[Giampaolo]
> It's not that cPython avoided to add Windows poll() support.
> poll() system call is *UNIX only*.

The poster is confused. The statement "poll() system call is *UNIX
only*" applies to cpython, *not* to jython. Jython *has* a poll object
on Windows, and it works.

[Giampaolo]
> Having select() support is good for Windows users since it's often the
> only chance they have for doing socket multiplexing.

The poster has not been reading what I've been writing. The statement
above applies only to cpython, not to jython.

By necessity, jython must use java.nio.channels.Selector to implement
the select function. But this usage results in an "unnatural" usage of
the java API, and gives rise to the problem being discussed in this thread.

I refer you to the code for the actual implementation of the jython
select module.

http://fisheye3.atlassian.com/browse/~raw,r=trunk/jython/trunk/jython/Lib/select.py

If the poster has better implementation options, patches are welcome.
Further discussion based on confusing cpython with jython will serve no
purpose.

http://www.jython.org/Project/userfaq.html
History
Date User Action Args
2009-04-06 09:33:43amaksetmessageid: <1239010423.52.0.61563554719.issue1291@psf.upfronthosting.co.za>
2009-04-06 09:33:43amaksetrecipients: + amak, irmen, billiejoex, zyasoft
2009-04-06 09:33:43amaklinkissue1291 messages
2009-04-06 09:33:42amakcreate