try except question - serious foo bar question, and pulling my hair out :-)
invalid at invalid
Tue Feb 24 10:38:11 EST 2009
On 2009-02-24, Steve Holden <steve at holdenweb.com> wrote:
>> However, this cannot happen. This application is running
>> multiple threads (10+) and every thread monitors the global
>> "stop_requested" flag. If there was an unexpected error in the
>> service, stop_requested.set() is called. It will stop all
>> threads and exit the process. stop_requested.clear() is NEVER
>> called, so the while loop should have not been ended. So what
>> is happening here? It drives me crazy.
> Time to get a stuffed toy and go through your code, explaining
> to the toy exactly why your code is right and nothing can go
> wrong. With luck, within half an hour you will realize what
> you are doing wrong ...
It works with a person as well as stuffed toys -- but trying to
order a person on the internet gets you in a lot more trouble.
It's also a little more embarassing when you realize your
mistake in front of a person. OTOH, sometimes a person will
ask an enlightening question; but, sometimes they just make
unhelpfull wisecracks. It's a tough choice.
Grant Edwards grante Yow! OVER the underpass!
at UNDER the overpass!
visi.com Around the FUTURE and
More information about the Python-list