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

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Oct 10 23:23:00 CEST 2012


>>>>Mark Adam wrote:

>>>There doesn't *have* to be - you could run a network event loop in one
>>>thread and a GUI event loop in another and pass control back and forth
>>>via methods like IOLoop.add_callback or Reactor.callFromThread.

Well, that could be done, but one of the reasons for using
an event loop approach in the first place is to avoid having
to deal with threads and all their attendant concurrency
problems.

-- 
Greg



More information about the Python-ideas mailing list