[Python-ideas] Adding a pipe function to functools

Steven D'Aprano steve at pearwood.info
Sat Apr 16 01:06:33 EDT 2016


On Fri, Apr 15, 2016 at 01:51:45PM -0500, Wes Turner wrote:

> * https://docs.python.org/3.1/howto/functional.html#the-functional-module
> 
>     from functional import compose, partial
>     import functools
>     multi_compose = partial(functools.reduce, compose)
> 
> * https://docs.python.org/3.5/library/functools.html
> 
>   * functools.compose is gone!

functools.compose never existed. The above example is 
functional.compose, a third party library.



-- 
Steve


More information about the Python-ideas mailing list