Marko Nervo <ma...@python.it> added the comment:

In [1]: import functools

In [2]: def adder(x, y, z):
   ...:     return (x + y + z)
   ...: 

In [3]: adder = functools.partial(adder)

In [4]: adder(2)(3)(4)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)

/home/marko/<ipython console> in <module>()

TypeError: adder() takes exactly 3 arguments (1 given)


No, it can't be replaced using functools.partial.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13430>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to