Message147897
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. |
|
Date |
User |
Action |
Args |
2011-11-18 16:59:42 | markonervo | set | recipients:
+ markonervo, collinwinter, rhettinger, pitrou, gregory_p, ezio.melotti, eric.araujo, alex, serprex |
2011-11-18 16:59:42 | markonervo | set | messageid: <1321635582.0.0.34243385897.issue13430@psf.upfronthosting.co.za> |
2011-11-18 16:59:41 | markonervo | link | issue13430 messages |
2011-11-18 16:59:41 | markonervo | create | |
|