Use keyword argument unpacking:
>>> kw = {'a': True}
>>> f(**kw)
<<< 'a was True'
More Related Contents:
- Use of *args and **kwargs [duplicate]
- What is the purpose and use of **kwargs? [duplicate]
- Proper way to use **kwargs in Python
- Converting Python dict to kwargs?
- How to increase/reduce the fontsize of x and y tick labels
- Calling a Python function with *args,**kwargs and optional / default arguments
- Passing a list of kwargs?
- Why use **kwargs in python? What are some real world advantages over using named arguments?
- argparse argument order
- In Python, what determines the order while iterating through kwargs?
- How to get a list of built-in modules in python?
- One Hot Encoding using numpy [duplicate]
- Flask css not updating [closed]
- Extract string from between quotations
- numpy – evaluate function on a grid of points
- Python import from parent directory
- Change specific RGB color pixels to another color, in image file
- Double underscore in python
- How to create a number of empty nested lists in python [duplicate]
- How to avoid global variables
- How can I sort a list, according to where its elements appear in another list?
- Pandas: remove duplicates that exist in any order
- Using ^ to match beginning of line in Python regex
- How to convert a 3d numpy array to 2d
- Python Parse CSV Correctly
- Inheriting methods’ docstrings in Python
- Set specific DNS server using dns.resolver (pythondns)
- Selenium / Python – Selecting via css selector
- How to run Azure CLI commands using python?
- Difference between df[x], df[[x]], df[‘x’] , df[[‘x’]] and df.x