Alan, That's no good. You still get something printed out. In this case:
None Jeff -----Original Message----- From: Alan Gauld [mailto:[EMAIL PROTECTED] Sent: Monday, February 07, 2005 6:15 PM To: Smith, Jeff; Bob Gailer; tutor@python.org Subject: Re: [Tutor] Are you allowed to shoot camels? [kinda OT] 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