[EMAIL PROTECTED] wrote:
> The two primary differences between using def and using lambda is that
> lambda is limited to a single expression and def cannot be used within
> another function.

'def' can certainly be used within another function :

def make_adder( delta ) :
    def adder( x ) :
        return x + delta
    return adder

[sreeram;]

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to