def get_signals(signums):
 return dict(((s, signal.getsignal(s)) for s in signums))

def get_signals ( signums ) : return dict ( ( ( s , signal . getsignal ( s ) ) for s in signums ) )
get the handlers for an iterable of signums .