+1 <br><br><div class="gmail_quote">On Fri, Aug 7, 2009 at 9:17 PM, Greg Ewing <span dir="ltr"><<a href="mailto:greg.ewing@canterbury.ac.nz">greg.ewing@canterbury.ac.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Steven D'Aprano wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Why would you want to get rid of the lambda keyword? What's the benefit?<br>
<br>
Is this about saving twelve keystrokes?<br>
</blockquote>
<br></div>
It's about conciseness. The only time it makes sense to<br>
write a function in-line is when the body is extremely<br>
short -- but then it gets swamped by the lambda keyword<br>
itself.<br>
<br>
But I agree that the OP's particular solution is restricted<br>
to a case that's too special. My version is completely<br>
general -- it can express anything that the existing lambda<br>
can express.<br>
<br>
-- <br><font color="#888888">
Greg</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org" target="_blank">Python-ideas@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-ideas" target="_blank">http://mail.python.org/mailman/listinfo/python-ideas</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Gerald Britton<br>