__init__(self,
fcn,
*argv,
**kwarg)
(Constructor)
| source code
|
Create a closure by memorizing a function and its arguments. If all
arguments are supplied, you can get the result by calling the closure
without arguments. Missing arguments are replaced by instances of class
NotYet; such arguments will need to be supplied when the closure is
called.
As an additional feature, you can supply a list of users of the
function's value. When the value is (eventually) produced, the user
function(s) will be called with the closure's return value. Users must
be functions of one argument.
|