[Python-Dev] functools.compose to chain functions together

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Aug 17 02:51:27 CEST 2009

Jason R. Coombs wrote:
> I had a use case that was compelling enough that I thought there
 > should be something in functools to do what I wanted.

I think this is one of those things that a small minority of
people would use frequently, but everyone else would use
very rarely or never. The decision on whether to include
something in the stdlib needs to be based on the wider

In this case, it's trivial to write your own if you want
it. As they say, "not every one-line function needs to
be in the stdlib".


More information about the Python-Dev mailing list