Is there a function that applies list of functions to a value?

alex23 wuwei23 at gmail.com
Fri Aug 30 02:23:44 EDT 2013


On 30/08/2013 4:14 PM, fp2161 at 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.




More information about the Python-list mailing list