Re: decorator and signal handler

2007-09-05 Thread Daniel Larsson
On 9/5/07, stalex <[EMAIL PROTECTED]> wrote: > > Hi all, > > I wrote the following code since I want to try using a decorator to > install signal handler: > > ## The test.py script > # > import os > import time > import signal > > def sigHandler(sid): > def handler(f): >

Re: decorator and signal handler

2007-09-05 Thread Michele Simionato
On Sep 5, 11:39 am, stalex <[EMAIL PROTECTED]> wrote: > Hi all, > > I wrote the following code since I want to try using a decorator to > install signal handler: I do have a decorator for exactly that purpose in my code. Here it is: def on(sig): ''' A factory of decorators for signal hand