lambda 4 dummies

Giuseppe Ricioppo exml at libero.it
Tue Mar 4 06:59:05 EST 2003


Hi All.

Given the following code:

        >>> f = lambda a, b, c: a + b +c
        >>> f(1,1,1)
        3

Here, f is assigned the function object the lambda expression returns. Is f,
the object returned, a reference to an anonymous function?

Best regards.

Gius.







More information about the Python-list mailing list