No
According to the documentation, partial
cannot do this (emphasis my own):
partial.args
The leftmost positional arguments that will be prepended to the positional arguments
You could always just “fix” pow
to have keyword args:
_pow = pow
pow = lambda x, y: _pow(x, y)
More Related Contents:
- Normal arguments vs. keyword arguments
- Print multiple arguments in Python
- How to expand a list to function arguments in Python [duplicate]
- Python Argument Binders
- How do I create a Python function with optional arguments?
- Python: Passing variables between functions
- Best way to check function arguments? [closed]
- How to pass an argument to event handler in tkinter?
- How do I define a function with optional arguments?
- Python function as a function argument?
- Is there a way to change effective process name in Python?
- In Python, can I call the main() of an imported module?
- Using map() function with keyword arguments
- Why do I get a TypeError that says “takes no arguments (1 given)”? [duplicate]
- Python Class Based Decorator with parameters that can decorate a method or a function
- How to have multiple conditions for one if statement in python [duplicate]
- Which exception should I raise on bad/illegal argument combinations in Python?
- Is it safe to rely on Python function arguments evaluation order? [duplicate]
- Modifying function arguments
- Passing argument from Parent function to nested function Python
- How can I print multiple things (fixed text and/or variable values) on the same line, all at once?
- Get a list/tuple/dict of the arguments passed to a function?
- How does using a function (callback) as an argument to another function work in Python?
- Read from File, or STDIN
- Converting list to *args when calling function [duplicate]
- Specifying arguments with spaces for running a python script
- Unpacking arguments: only named arguments may follow *expression
- How can I bind arguments to a function in Python?
- With “args” vs without “args” to pass arguments to a thread in Python
- How can the built-in range function take a single argument or three?