Package aquarium :: Package util :: Module Curry :: Class Curry
[show private | hide private]
[frames | no frames]

Class Curry


This class is a curry (think functional programming).

HACK: This class can probably go away in Python 2.3 thanks to closures.

The following attributes are used:

f
This is the function being curried.
initArgs, initKargs
These are the args and kargs to pass to f.

Method Summary
  __init__(self, f, *initArgs, **initKargs)
Accept the initial arguments and the function.
  __call__(self, *args, **kargs)
Call the function.

Method Details

__init__(self, f, *initArgs, **initKargs)
(Constructor)

Accept the initial arguments and the function.

__call__(self, *args, **kargs)
(Call operator)

Call the function.


Generated by Epydoc 2.1 on Mon Jan 1 16:34:19 2007 http://epydoc.sf.net