[issue1506122] Add compose function to the functools
Raymond Hettinger rhettin...@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 rep...@bugs.python.org http://bugs.python.org/issue1506122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1506122] Add compose function to the functools
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: The proposed code may be useful sometimes, but is not generic enough for the standard library. For example, the f() function can only take one argument, when g() can accept any number. Implementations of this kind are so easy to write, They are better described by their implementation rather than documentation. IMO they show the expressiveness of python, and don't need to be hidden in a C module. -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1506122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1506122] Add compose function to the functools
Changes by Amaury Forgeot d'Arc amaur...@gmail.com: -- resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1506122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1506122] Add compose function to the functools
Éric Araujo mer...@netwok.org added the comment: Gregory, any update on this? Maybe you can poll python-ideas. Collin, any download stats and feedback on your package? -- nosy: +merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1506122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1506122] Add compose function to the functools
Demur Rumed junkm...@hotmail.com added the comment: A type safe compose could be useful. One which instead of returning a function that takes (*args,**kwargs), takes the same as the first function which the arguments would be passed to. Copying a functions argument semantics would be useful in general, such as for decorators -- nosy: +serprex ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1506122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1506122] Add compose function to the functools
Changes by Daniel Diniz aja...@gmail.com: -- versions: +Python 2.7, Python 3.1 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1506122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com