[Tutor] Demystification of Lambda Functions

Laura Creighton lac at openend.se
Wed Oct 28 06:01:50 EDT 2015


In a message of Tue, 27 Oct 2015 21:04:45 -0400, "Hunter Jozwiak" writes:
>Hello,
>
> 
>
>I am not sure exactly why there would be a practical use for a lambda
>function, other than the fact that you can make one-liner functions that
>take parameters in to a variable. Or at least that is how things look when
>they are written. Can I have some demystification?
>
> 
>
>Thanks,
>Hunter

Practically the only time I use them is to code callbacks in Tkinter
functions.

see: https://pythonconquerstheuniverse.wordpress.com/2011/08/29/lambda_tutorial/

for why it is useful.

Laura


More information about the Tutor mailing list