Finally found a use for lambda!
Hannu Kankaanpää
hanzspam at yahoo.com.au
Mon Sep 15 09:57:21 EDT 2003
follower at iname.com (Follower) wrote in message news:<d2f38965.0309150133.4aef2253 at posting.google.com>...
> > Of course, now that I think about it, I could have also written:
> > self.assertEqual (foo.has_key ('bar')), 0)
>
> ObMinimalism attempt:
>
> self.failIf(foo.has_key('bar'))
That's not really minimalism (ObMinimalism=Obfuscation Minimalism?
That even less!). That is actually The way to do it. You can just
read it out loud and it makes sense immediately.
More information about the Python-list
mailing list