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

Chris Angelico rosuav at gmail.com
Thu Aug 29 17:35:39 EDT 2013


On Fri, Aug 30, 2013 at 7:27 AM,  <fp2161 at gmail.com> wrote:
> Chris, call me a snob, but I resent using lambdas (aren't they usually considered odd/bad practice in python?)

They're not bad practice; all they are is a function without a name,
that's restricted to returning a single expression. So they're
perfectly suited to this task, and ill-suited to some others.

Like everything, lambda's a tool that can be used or misused.

ChrisA



More information about the Python-list mailing list