6.12.5.1.3. Input Adapter

Wrap any function into a function that accepts a single object which is a pair. The first element of the pair is the tuple of positional arguments and the second the dictionary of keyword arguments. The pair is called the normalised form of a value.
Start python section to interscript/felix/model/funcat.py[3 /8 ] Next Prev Last
    38: #line 66 "felix_func.ipk"
    39: class input_adapter:
    40:   def __init__(self, func):
    41:     self.func = func
    42: 
    43:   def __call__(self, arg):
    44:     return apply(self.func, arg[0], arg[1])
    45: 
End python section to interscript/felix/model/funcat.py[3]