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):
>
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
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):
signal.signal(sid, f)
return f
return handler
class Test(o