[Tutor] Asynch i/o in Python ?
Danny Yoo
dyoo at hkn.eecs.berkeley.edu
Sat Sep 27 22:35:38 EDT 2003
On Sat, 27 Sep 2003, Rahul Kumar wrote:
> Does Python support aio (asynch io). I dont mean just the non-blocking
> select().
Hi Rahul,
The language itself doesn't specify blocking/nonblocking IO features, but
there are several libraries that do. For example, there's a library
module called asyncore:
http://www.python.org/doc/lib/module-asyncore.html
http://www.python.org/doc/lib/module-asynchat.html
that provides core support for asynchronous IO.
Not only is there good support from the Standard Library, but there are
also some nice third-party modules. In particular, there's a
comprehensive package called "Twisted Python":
http://www.twistedmatrix.com/products/twisted
The Twisted folks are wrapping all kinds of network protocols with an
asynchronous IO interface, including ftp, telnet, http, instant messaging,
and a whole lot of other protocols... *grin*
Anyway, hope those links are helpful for you. If you have more questions,
please feel free to ask. Good luck!
More information about the Tutor
mailing list