7 return repr(self.
value)
10 def handler(signum, frame):
13 old = signal.signal(signal.SIGALRM, handler)
16 result =
f(*args, **kwargs)
18 signal.signal(signal.SIGALRM, old)
25 def handler(signum, frame):
28 def new_f(*args, **kwargs):
29 old = signal.signal(signal.SIGALRM, handler)
34 result =
f(*args, **kwargs)
37 signal.signal(signal.SIGALRM, old)
43 new_f.__name__ = f.__name__