[Python-ideas] asyncore: included batteries don't fit

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Oct 9 07:56:15 CEST 2012


Mark Adam wrote:
> 1) event handlers for the machine-program interface (ex. network I/O)
> 2) event handlers for the program-user interface (ex. mouse I/O)
> 
> While similar, my gut tell me they have to be handled in completely
> different way in order to preserve order (i.e. sanity).

They can't be *completely* different, because deep down there
has to be a single event loop that can handle all kinds of
asynchronous events.

Upper layers can provide different APIs for them, but there
has to be some commonality in the lowest layers.

-- 
Greg



More information about the Python-ideas mailing list