[issue1506122] Add "compose" function to the functools

Raymond Hettinger report at bugs.python.org
Sat Jul 24 01:48:34 CEST 2010

Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

I agree with Amaury that this should be closed.  It has been previously discussed and rejected in other forums.  One the issues is that the usual mathematical order is unintuitive and not self-documenting  -- i.e. is compose(f,g)  the same as f(g(x)) or g(f(x))?  Also, it is already dirt simple to create your own compose function or to do the composition directly:  h = lambda x: f(g(x)).

nosy: +rhettinger
resolution: works for me -> rejected

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list