[Python-3000] A plea for anonymous functions

Michael Urman murman at gmail.com
Thu Nov 16 15:06:31 CET 2006


> The problem is not merely related to the number of lines of code. It is a
> readibility problem. Having the callback enclosed in a the function call
> which registers it makes the code more readable than defining the callback
> beforehand.

And, unless I'm missing something, much harder to unit test. Is that
really worth encouraging for handlers with complexity beyond the
current lambda?

-- 
Michael Urman  http://www.tortall.net/mu/blog


More information about the Python-3000 mailing list