@staticmethod
def PythonPartial(func, *args, **keywords):
    def newfunc(*fargs, **fkeywords):
        newkeywords = keywords.copy()
        newkeywords.update(fkeywords)
        return func(*(args + fargs), **newkeywords)
    newfunc.func = func
    newfunc.args = args
    newfunc.keywords = keywords
    return newfunc
Pure Python approximation of partial()
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/test/test_functools.py/PythonPartial