[Python-Dev] functools.compose to chain functions together (original) (raw)

"Martin v. Löwis" martin at v.loewis.de
Sun Aug 16 23:54:48 CEST 2009


The reason I came across the old patch was because I was searching for something that did exactly what compose does. That is to say, I had a use case that was compelling enough that I thought there should be something in functools to do what I wanted. I've encountered this pattern often enough that it might be in the stdlib.

Can you kindly give one or two examples of where compose would have been useful?

Regards, Martin



More information about the Python-Dev mailing list