def decorator_factory(decfac):
 return partial((lambda df, param: decorator(partial(df, param))), decfac)

def decorator_factory ( decfac ) : return partial ( ( lambda df , param : decorator ( partial ( df , param ) ) ) , decfac )
decorator_factory returns a one-parameter family of decorators .