Replacement for lambda - 'def' as an expression?

Sybren Stuvel sybrenUSE at
Tue Sep 6 22:06:21 CEST 2005

Terry Reedy enlightened us with:
> Are you claiming that including a reference to the more humanly readable 
> representation of a function (its source code) somehow detracts from the 
> beauty of the function concept?


> Or are you claiming that binding a function to a name rather than
> some other access reference (like a list slot) somehow detracts from
> its conceptual beauty?


> Is so, would you say the same about numbers?


I was under the (apparently very wrong) impression (don't ask my why)
that something like the example that Paul Rubin gave wouldn't be
possible. Now that I've learned that, I take back what I've said. His
code is more beautyful IMO ;-)

The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself? 
                                             Frank Zappa

More information about the Python-list mailing list