Yay! Thanks for the tips Michael/Alan - works a treat, although I must admit, I'm not sure what Lambda does.
Adam
Lambda is basically a function without a name that can be used inline. Take for example, this code.
def funct(x): return sin(x)
is the same as
funct = lambda x: sin(x)
There seems to be a running debate over whether lambdas are worth the trouble. I believe it's a matter of preference.
HTH,
Jacob
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor