Re: [Tutor] lambda in python

2010-11-27 Thread Alan Gauld
"john tsolox" wrote seeing various examples of lambda in python being ALL one-liners. These one-liners inside a lambda seems not to have the full permissible use of the full power of python language (if,for,while). Is this correct? The lambda expression was introduced into Python by popula

Re: [Tutor] lambda in python

2010-11-26 Thread Steven D'Aprano
john tsolox wrote: since in Java i can pass an anonymous class to a function, and this anon class has member functions that can contain a body of implementation codes having the full expression of permissible syntax (if,for,while...), my question is, after seeing various examples of lambda in p

[Tutor] lambda in python

2010-11-26 Thread john tsolox
since in Java i can pass an anonymous class to a function, and this anon class has member functions that can contain a body of implementation codes having the full expression of permissible syntax (if,for,while...), my question is, after seeing various examples of lambda in python being ALL one-l