[Python-Dev] asyncore fixes in Python 2.6 broke Zope's version of medusa
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri Mar 6 07:15:25 CET 2009
Antoine Pitrou wrote:
> For starters, since py3k is supposed to support non-blocking IO, why not write a
> portable API to make a raw file or socket IO object non-blocking?
I think we need to be clearer what we mean when we talk
about non-blocking in this context. Normally when you're
using select/poll you *don't* make the underlying file
descriptor non-blocking in the OS sense. The non-blockingness
comes from the fact that you're using select/poll to make
sure the fd is ready before you access it.
So I don't think it makes sense to talk about having a
non-blocking API as a separate thing from a select/poll
wrapper. The select/poll wrapper *is* the non-blocking
API.
--
Greg
More information about the Python-Dev
mailing list