I stand corrected. Not sure where I got that from, improper
defragmentation due to sleep depravation perhaps...

K.S.Sreeram wrote:
> [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;]
>
>
> --------------enigFDB411206B54B101CC680F5A
> Content-Type: application/pgp-signature
> Content-Disposition: inline;
>       filename="signature.asc"
> Content-Description: OpenPGP digital signature
> X-Google-AttachSize: 253

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

Reply via email to