[Python-Dev] Re: asyncore 2.1.1/2.2 incompatibility (original) (raw)

Andrew Kuchling akuchlin@mems-exchange.org
Fri, 22 Mar 2002 15:08:24 -0500


On Fri, Mar 22, 2002 at 01:24:32PM -0500, Jeremy Hylton wrote:

Raising the exception only works from inside a signal handler, right?

I don't see why it would. handle_read_event and handle_write_event can raise the asyncore.ExitNow exception to terminate the main loop. A signal handler should also raise ExitNow, in case it's unlucky and fires within a handle_*_event() method.

(Boy, do we ever need an asyncore HOWTO.)

--amk (www.amk.ca) Good place to put things, cellars. -- The Doctor, in "Remembrance of the Daleks"