def composite(f):
    '''
    Used to turn an ordinary function into a higher order function being 
    composed with its argument. The composite function can be used as a 
    decorator. But that's not our use pattern here.
    '''
    def compose(g):
        def wrap(*args, **kwd):
            return f(g(*args, **kwd))
        wrap.__name__ = g.__name__
        return wrap
    compose.__name__ = f.__name__
    return compose

    Used to turn an ordinary function into a higher order function being 
    composed with its argument. The composite function can be used as a 
    decorator. But that's not our use pattern here.
    
recipes/Python/528929_Dynamic/recipe-528929.py