On 30/08/2013 4:14 PM, fp2...@gmail.com wrote:
For this purpose however, I suspect that a named function with a proper 
docstring that can be imported and reused over and over again is probably more 
appropriate than a lambda

Given that in Chris' example the lambda was returned from a factory, importing the inner function by name is never going to be a concern.

It's also possible to assign to both __name__ and __doc__ for a lambda, which can be useful at times.

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

Reply via email to