[Python-ideas] a new lambda syntax

starwing weasley_wx at qq.com
Mon Oct 19 16:28:58 CEST 2009

Oleg Broytman 写道:
> On Mon, Oct 19, 2009 at 09:33:06PM +0800, starwing wrote:
>> current lambda only support single line
>> syntax. it's not very good.
>    This is where you've made an error. Single-line lambdas are good enough,
> and if you need more - just create a named function.
> Oleg.
BUT, why we need a name? just to process something or make decide, 
sometimes code itself is enough.

and, is there performance problems when you define a inner function in 
another function? (that's, that function will define every time you call 
the function or not?)

More information about the Python-ideas mailing list