Message3130

Author amak
Recipients amak, asterio
Date 2008-04-07.20:39:04
SpamBayes Score 0.0
Marked as misclassified No
Message-id <1207600745.06.0.748687166926.issue1018@psf.upfronthosting.co.za>
In-reply-to
Content
One thing I'd like to point out to you is that you can avoid all those
setblocking(0|1) calls to switch on and off for select'ing by using the
cpython_compatible_select function, added for exactly this situation. To
use it, either call select.cpython_compatible_select() directly, or
import like this

from select import cpython_compatible_select as select

More details from here

http://wiki.python.org/jython/SelectModule#head-b6728987f9d2e872721ecf2174ad98e116b33292

If you really want to be using the sockets in non-blocking mode, you
should perhaps consider the asyncore and asynchat modules as a model for
writing your servers and clients.
History
Date User Action Args
2008-09-12 00:32:15nrileysetspambayes_score: 0.224385 -> 0.0
2008-04-07 20:39:05amaksetspambayes_score: 0.224385 -> 0.224385
recipients: + amak, asterio
2008-04-07 20:39:05amaksetspambayes_score: 0.224385 -> 0.224385
messageid: <1207600745.06.0.748687166926.issue1018@psf.upfronthosting.co.za>
2008-04-07 20:39:04amaklinkissue1018 messages
2008-04-07 20:39:04amakcreate