This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author markonervo
Recipients alex, collinwinter, eric.araujo, ezio.melotti, gregory_p, markonervo, pitrou, rhettinger, serprex
Date 2011-11-18.16:59:41
SpamBayes Score 4.184164e-06
Marked as misclassified No
Message-id <1321635582.0.0.34243385897.issue13430@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-11-18 16:59:42markonervosetrecipients: + markonervo, collinwinter, rhettinger, pitrou, gregory_p, ezio.melotti, eric.araujo, alex, serprex
2011-11-18 16:59:42markonervosetmessageid: <1321635582.0.0.34243385897.issue13430@psf.upfronthosting.co.za>
2011-11-18 16:59:41markonervolinkissue13430 messages
2011-11-18 16:59:41markonervocreate