Securing a future for anonymous functions in Python

Nick Coghlan ncoghlan at
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. . .


Nick Coghlan   |   ncoghlan at   |   Brisbane, Australia

More information about the Python-list mailing list