[Python-ideas] Add a generic async IO poller/reactor to select module
Giampaolo Rodolà
g.rodola at gmail.com
Thu May 24 03:43:33 CEST 2012
2012/5/24 Giampaolo Rodolà <g.rodola at gmail.com>:
> The handler is supposed to provide 3 methods:
> - handle_read_event
> - handle_write_event
> - handle_error_event
Further note: this is the approach I used in pyftpdlib.
An even more abstracted approach would be having poller.poll() return
a dict of {fd: events, fd, events, ...}, similarly to what Tornado
currently does.
This way we wouldn't be forcing the user to provide a handler class
with the 3 methods described above.
--- Giampaolo
http://code.google.com/p/pyftpdlib/
http://code.google.com/p/psutil/
http://code.google.com/p/pysendfile/
More information about the Python-ideas
mailing list