-
Notifications
You must be signed in to change notification settings - Fork 17
Open
@elchupanebrej
Description
There is function
def func(a): print(f"Arg: {a}")
When it is used by functiools.partial:
from functools import partial partial(partial(func, a=1), a=2)() """ >>> Arg: 2 """
When it is used by makefun.partial:
from makefun import partial as mpartial mpartial(mpartial(func, a=1), a=2)() """ >>> Arg: 1 """
So makefun.partial could not be drop-in replacement for functools.partial
Metadata
Metadata
Assignees
Labels
No labels