lambda versus "mlambda"...
Johann Hibschman
johann at physics.berkeley.edu
Thu May 11 01:16:36 EDT 2000
Courageous writes:
>> I think what you want is spelled thusly:
>>
>> lambda <args>, self=self: <expression>
> Oh, cool! So! Is the portion of the expression where you
> say "self=self" a more general way of introducing a sort
> of closure into the lambda expression? The python documentation
> on lambda doesn't seem to be very detailed in this respect...
Yes, exactly.
Do that enough, and you get used to it. It's part of why there isn't
all that much clamoring for full closures.
--
Johann Hibschman johann at physics.berkeley.edu
More information about the Python-list
mailing list