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

Fabrice Pombet fp2161 at gmail.com
Fri Aug 30 04:06:00 EDT 2013


On Friday, August 30, 2013 8:23:44 AM UTC+2, alex23 wrote:
> 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.
I am sorry, I can't see any of Chris' code in this thread, where is it???



More information about the Python-list mailing list