[gamin] can a Python callback, exit?
- From: Don Lindsay <lindsayd cisco com>
- To: gamin-list gnome org
- Subject: [gamin] can a Python callback, exit?
- Date: Thu, 8 Mar 2007 17:14:44 -0800 (PST)
More specifically, can a Python "try-except" clause catch an exception
raised inside a callback?
I tried it - admittedly with gamin-0.1.7-8.fc6, not with 1.8. The
exception wasn't politely caught.
I also notice that none of the test programs do "raise" or "exit()" inside
callbacks, and flood.py returns status to the mainline by setting a global
variable "ok". What I want to do, is to terminate the watching program if
the thing being watched gets deleted. Do I have to code it like flood.py ?
---
Don
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]