Securing a future for anonymous functions in Python

Nick Coghlan ncoghlan at iinet.net.au
Fri Dec 31 03:50:14 CET 2004


Bengt Richter wrote:
> This is an easy trap to fall into, so if the new lambda-substitute could
> provide a prettier current-closure-variable-value capture than passing a dummy default
> value or nesting another def and passing the value in, to provide a private closure for each,
> that might be something to think about.

I forgot about that little trap. . .

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at email.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://boredomandlaziness.skystorm.net



More information about the Python-list mailing list