On Mon, 2005-11-07 at 15:04 +0100, Toni Alatalo wrote:
> On Monday 07 November 2005 14:36, Jason Tackaberry wrote:
> > argument you don't need: signal.connect(lambda dummy: sys.exit), or
> 
> why can't you just do signal.connect(sys.exit) ?

Because in the example I gave, the signal provides an argument to the
callback that isn't needed, and in fact, would break on sys.exit (maybe
it's a string or object).  So you need a function to eat the argument.
lambda dummy: sys.exit

Cheers,
Jason.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to