functools.partial wants to use a positional argument as a keyword argument
This has nothing to do with functools.partial, really. You are essentially calling your function like this: f(1, x=3) Python first fulfils the positional arguments, and your first argument is x. Then the keyword arguments are applied, and you again supplied x. functools.partial() has no means to detect that you already supplied the first positional argument … Read more