That's actually worse than you might think. Try this: > def p(): pass > ftable = { 'a' : lambda: 'a', > 'd' : lambda: p}
That should be: 'd': p} ie No lambda used at all. I wish Python had real lambdas! > And what you get is: > <function p at 0x009BDFB0> Yep, coz the lambda returns a function object! Which it should, I just shouldn't have used lambda there. My bad, Alan G. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor