On Monday 07 November 2005 15:04, Jason Tackaberry wrote:
> On Mon, 2005-11-07 at 15:04 +0100, Toni Alatalo 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

ok. perhaps you could use a function-factory like callback(), to which you can 
give a callable, and it returns that callable in such a wrapping that eats 
all arguments?

then you could do: signal.connect(callback(sys.exit)), no?

> Jason.

~Toni


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to