[issue13430] Add a curry function to the functools module

Ezio Melotti report at bugs.python.org
Fri Nov 18 19:09:22 CET 2011


Ezio Melotti <ezio.melotti at gmail.com> added the comment:

In that thread Guido said:
"""
Haskell has this too, perhaps even more extreme: there's not really
such a thing in Haskell as a function of N arguments (N > 1). "f a b =
..." defines a function f of one argument a which returns another
function ("f a") of one argument b. And so on.

That doesn't mean we need to copy this idea in Python.
"""

New features require a valid use case before being included, and I'm afraid "why not?" is not valid :)
(Also nothing prevents you to define your own curry function/decorator and use it where you need it.)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13430>
_______________________________________


More information about the Python-bugs-list mailing list