def myfunc(arg1, arg2):
    pass
partial(myfunc, arg2=1).func == partial(myfunc, arg2=1).func
partial(myfunc, arg2=1).args == partial(myfunc, arg2=1).args
How to compare wrapped functions with functools.partial?